schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Search results for tag #Python

[?]:hacker_p: :hacker_f: :hacker_t: »
@pft@infosec.exchange

The reason why apps are full of these "micro libraries" is that the standard library lacks basic functionality.

Writing code is ist just a huge liability (Same goes for IMO).

cyberplace.social/@GossiTheDog

    [?]Chris is. »
    @offby1@wandering.shop

    13 seats, 13 candidates... wtf?

      [?]Python Software Foundation »
      @ThePSF@fosstodon.org

      📣📣 ATTN PSF Voting Members: The 2025 PSF Board election vote closes tomorrow, September 16th, at 2PM UTC- but don't wait, go vote today! If you affirmed for 2025 or are pre-affirmed from last year, check your email for voting instructions 🗳️
      pyfound.blogspot.com/2025/08/t

        [?]Test Double »
        @testdouble@mastodon.social

        Python devs, is this familiar: Your team writes beautiful snake_case code, but every external API wants camelCase.

        You could:
        - Pollute your codebase with non-Pythonic naming
        - Write manual conversion layers
        - Live with the friction

        Or you could use Pydantic's field aliases to solve this once and for all.

        New guide: How to handle non-Pythonic naming conventions seamlessly 👇
        link.testdouble.com/e357d1

          [?]Veronica Olsen 🏳️‍🌈🇳🇴🌻 »
          @veronica@mastodon.online

          When I write tests for code, I often include references to TV or books or other such things.

          If I need a text string, I rarely do "Hello World". I used to do "Hello Kitty" but these days I usually use "Hi Bob" (from For All Mankind). I even added a test API header "X-Hi: Bob" the other day. 😁

          For errors I often go with "Out of cheese error" or "Divide by cucumber error" from Discworld.

            Glyph boosted

            [?]🌈 ☯️Teresita🐧👭 »
            @linuxgal@techhub.social

            Days between today and any date with #69

            #!/usr/bin/python3
            import sys; from datetime import datetime,date
            formats=["%m/%d/%Y","%m/%d/%y","%Y-%m-%d","%d-%m-%Y","%d %b %Y","%d %B %Y"]
            for f in formats:
            try: d=datetime.strptime(sys.argv[1],f).date(); break
            except: pass
            else: exit("bad format")
            print(abs((date.today()-d).days))

              [?]Paco Hope wishes ill for JK Rowling »
              @paco@infosec.exchange

              @glyph Same laptop, same version of cpython (3.13), same requirements.txt file with pip:

              real    2m5.404s
              user 0m42.650s
              sys 0m5.081s

              So 125 seconds versus 14 seconds. Pip and uv calculate dependencies differently, though uv tries to be compatible. Pip did 253 packages and uv did 250. But pip works sequentially, one package at a time. One download at a time. Like many programs, uv is "embarrassingly parallel."

                [?]Paco Hope wishes ill for JK Rowling »
                @paco@infosec.exchange

                So I just rebuilt my personal venv in my home directory on my daily driver laptop. I did pip freeze > requirements.txt to capture all the packages I had installed. Then I took away all the ==a,b.c versioning so I'd install the latest compatible version.

                Then I ran uv pip install -r requirements.txt. This blew me way:

                $ time uv pip install -r requirements.txt 
                Resolved 250 packages in 2.38s
                Built python-ldap==3.4.4
                Built py-cui==0.1.6
                Built docopt==0.6.2
                Built email-normalize==2.0.0
                Built ecos==2.0.14
                ... bunch of lines...
                real 0m14.028s
                user 0m11.605s
                sys 0m4.131s

                Wow. 250 packages in 14 seconds.

                  [?]Leanpub »
                  @leanpub@mastodon.social

                  Ultimate ML interpretability bundle: Interpretable Machine Learning + Interpreting Machine Learning Models With SHAP leanpub.com/b/interpretability by Christoph Molnar is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com

                    [?]Leanpub »
                    @leanpub@mastodon.social

                    Advanced Conformal Prediction:Practical Uncertainty Quantification for Real-World ML by Valery Manokhin is on sale on Leanpub! Its suggested price is $44.95; get it for $31.96 with this coupon: leanpub.com/sh/jlvBbw3N

                      Glyph boosted

                      [?]lachlan slowly taming rust »
                      @lachlan@mastodon.social

                      If a highly customisable , or utility actually sounds like something you'd be keen on using, I'd actually really love to know. v0.2 has a couple of significant design changes that would effect calling it as a library or creating your own templates, and I'd love some feedback on the design (probably in a week or two) before I merge it in.

                      But - `pip install scrummd` will already give you the scrum tool nobody asked for!

                        [?]lachlan slowly taming rust »
                        @lachlan@mastodon.social

                        Sometimes, when coding your own thing, you do little things to make yourself happy even if it isn't _strictly in scope_ of the feature you're building.

                        I'm adding writing fields to . I needed to rewrite the output code to make that work - which meant I'm moving (eventually) all output to Jinja2 templates rather.

                        And, to make me happy: I added ANSI color when using interactively to the new default template.

                        ScrumMD card in terminal. The headings and titles highlighted in color.

Text reads:
---
cli001: Display basic collection from cards
---

status: Done

# description

A basic collection is a folder in the `scrum` folder containing md cards.

By default, all cards are in the inventory. There's no filters being applied at the moment.

For now, a card must have a summary. Other fields are optional. Fields are defined either in obsidian style properties:

```md
---
Property 1: Value
Property 2: Value
---
```

or by the text following a hash header with.

A card's index is currently its filename.

# cucumber

**GIVEN** a collection of cards, and a collection folder _C_.
**WHEN** `sbl C` is run.
**THEN** a table showing the index and description all the cards in the collection is shown.

                        Alt...ScrumMD card in terminal. The headings and titles highlighted in color. Text reads: --- cli001: Display basic collection from cards --- status: Done # description A basic collection is a folder in the `scrum` folder containing md cards. By default, all cards are in the inventory. There's no filters being applied at the moment. For now, a card must have a summary. Other fields are optional. Fields are defined either in obsidian style properties: ```md --- Property 1: Value Property 2: Value --- ``` or by the text following a hash header with. A card's index is currently its filename. # cucumber **GIVEN** a collection of cards, and a collection folder _C_. **WHEN** `sbl C` is run. **THEN** a table showing the index and description all the cards in the collection is shown.

                          [?]Leanpub »
                          @leanpub@mastodon.social

                          Mastering Modern Time Series Forecasting by Valery Manokhin is on sale on Leanpub! Its suggested price is $54.95; get it for $42.46 with this coupon: leanpub.com/sh/2ct53JYb

                            dch :flantifa: :flan_hacker: boosted

                            [?]mr_daemon »
                            @mr_daemon@untrusted.website

                            WOOPS I've added OpenBSD support to Exosphere. One thing led to another and uh...

                            A screenshot of a terminal showing the output of `inventory status` in the exosphere CLI showing an OpenBSD 7.7 system with 3 updates.

The output of `host show` follows, giving the platform details as fully supported, and a table listing package updates with the standard Name, Current Version, New Version, Security and Source columns.

The tables are nice colored curses-like, rich widgets.

                            Alt...A screenshot of a terminal showing the output of `inventory status` in the exosphere CLI showing an OpenBSD 7.7 system with 3 updates. The output of `host show` follows, giving the platform details as fully supported, and a table listing package updates with the standard Name, Current Version, New Version, Security and Source columns. The tables are nice colored curses-like, rich widgets.

                              Glyph boosted

                              [?]Pete Prodoehl 🍕 »
                              @rasterweb@mastodon.social

                              I did not make any good progress on my project to read GPX data with Python today. (Trying to read speed.) May need to just read it as XML.

                              There are a bunch of nerds who do Python and bikes though, so someone might have the code example I need.

                                [?]Leanpub »
                                @leanpub@mastodon.social

                                Introduction to GIS Programming: A Practical Python Guide to Open Source Geospatial Tools leanpub.com/gispro by Qiusheng Wu is the featured book on the Leanpub homepage! leanpub.com

                                Find it on Leanpub!

                                  dch :flantifa: :flan_hacker: boosted

                                  [?]gyptazy »
                                  @gyptazy@gyptazy.com

                                  [?]Leanpub »
                                  @leanpub@mastodon.social

                                  Forecasting Professional leanpub.com/b/forecasting_prof by Valery Manokhin is the featured bundle on the Leanpub homepage! leanpub.com

                                  The following 2 books are included in this bundle...
                                  Mastering Modern Time Series Forecasting and Probabilistic Forecasting with Conformal Prediction in Python

                                  Find it on Leanpub!

                                    Misty boosted

                                    [?]Holly Becker »
                                    @hwesta@wandering.shop

                                    I was laid off recently so I'm looking for a new job!

                                    I have a decade of experience as a web backend dev writing APIs in Python and Ruby in a variety of frameworks. I'm usually the git and Postgres expert on the team, and if you leave me alone I'll start writing tests and doing security updates. Used to help run PyLadies Vancouver, now PyCascades. More: hollybecker.net/resume/

                                    Looking for: full-remote, hiring in Canada, minimal LLM nonsense

                                      [?]Leanpub »
                                      @leanpub@mastodon.social

                                      Feature Selection in Machine Learning by Soledad Galli, PhD is on sale on Leanpub! Its suggested price is $29.99; get it for $21.24 with this coupon: leanpub.com/sh/D3vVpWb8

                                        Bill Seitz boosted

                                        [?]Glyph »
                                        @glyph@mastodon.social

                                        It's 2025 and I am still not 100% sure how to have go to sleep and wait for *either* an event from the keyboard/mouse/controller *or* an event from the network *or* a vblank interrupt without some kind of hard-coded polling timeout. Various attempts I've made at this in the past have violated thread safety rules and I'm not sure the documentation even covers all the constraints I need to preserve.

                                          [?]Leanpub »
                                          @leanpub@mastodon.social

                                          The Hitchhiker’s Guide to Plotnine by Jodie Burchell and Mauricio 'Pacha' Vargas Sepúlveda is free with a Leanpub Reader membership! Or you can buy it for $10.00! leanpub.com/plotnine-guide

                                            [?]Leanpub »
                                            @leanpub@mastodon.social

                                            The Forecasting, CatBoost & Conformal Prediction Tetralogy leanpub.com/b/forecasting_catb by Valery Manokhin is the featured bundle on the Leanpub homepage! leanpub.com

                                            Find it on Leanpub!

                                              [?]Veronica Olsen 🏳️‍🌈🇳🇴🌻 »
                                              @veronica@mastodon.online

                                              I think the bug I resolved (I wouldn't say fixed) in @novelwriter today is the weirdest I've encountered so far.

                                              The app uses @-based keywords to set meta data in the text. An auto-complete menu pops up to suggest which keyword when you type an @ on a new line.

                                              In the current version (at least) if you have the editor "justified margins" set, type an @, then type backspace, then *and only then* will Qt/PyQt segfault and crash the app.

                                                [?]Leanpub »
                                                @leanpub@mastodon.social

                                                Feature Selection in Machine Learning: Over 20 methods to select the most predictive features and build simpler, faster, and more reliable machine learning models. leanpub.com/feature-selection- by Soledad Galli, PhD is the featured book on the Leanpub homepage! leanpub.com

                                                Find it on Leanpub!

                                                  [?]scy »
                                                  @scy@chaos.social

                                                  A about just got released, and it's really good.

                                                  It talks about Python's origins, the founding of the PSF, the Python 2 to Python 3 transition, the struggle to increase diversity, Guido's resignation over the walrus operator, as well as Python's relevance as a language now and in the future.

                                                  youtube.com/watch?v=GfH4QL4VqJ0 (84 min)

                                                    [?]Leanpub »
                                                    @leanpub@mastodon.social

                                                    Mastering Modern Time Series Forecasting by Valery Manokhin is on sale on Leanpub! Its suggested price is $54.95; get it for $42.46 with this coupon: leanpub.com/sh/o8R2Rcp2

                                                      [?]Dusty »
                                                      @d1@autistics.life

                                                      @aparrish let the record state that it's 2025 and there's no official Delphi-like RAD IDE for, say, . (Python's official GUI toolkit is laughably TCL/Tk). Not even $5 million can be scrounged for funding this, by, say, the Foundation, which is a sum of money which is next to nothing for them.

                                                        [?]Leanpub »
                                                        @leanpub@mastodon.social

                                                        New 📚 Release! Practical MCP: A Python Developer's Guide by Arjuna Sky Kok

                                                        Large Language Models are powerful, but they're trapped. They can't access real-time data, call APIs, or even count characters reliably. *Practical MCP* is your guide to setting them free.

                                                        Find it on Leanpub!

                                                        Link: leanpub.com/practical-mcp

                                                          [?]Leanpub »
                                                          @leanpub@mastodon.social

                                                          Interpreting Machine Learning Models With SHAP: A Guide With Python Examples And Theory On Shapley Values leanpub.com/shap by Christoph Molnar is the featured book on the Leanpub homepage! leanpub.com

                                                          Master machine learning interpretability with this comprehensive guide to SHAP – your tool to communicating model insights and building trust in all your machine learning applications.

                                                          Find it on Leanpub!

                                                            Back to top - More...