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

[?]Glyph »
@glyph@mastodon.social

Ahem. By which I mean to say I usually do some on that channel, using . One of these days I will remember how actually doing self-promotion works

    [?]Leanpub »
    @leanpub@mastodon.social

    Django for Beginners/APIs/Professionals leanpub.com/b/djangoforbeginne by William S. Vincent is the featured bundle of ebooks 📚 on the Leanpub homepage! leanpub.com

    The following 3 books are included in this bundle...

    Django for Beginners (5th Edition), Django for APIs, and Django for Professionals

    Find it on Leanpub!

      dch :flantifa: :flan_hacker: boosted

      [?]mr_daemon »
      @mr_daemon@untrusted.website

      Well, it's time. I'm releasing my tool that lets you aggregate patch and update status of hosts over ssh on unix-like systems.

      The github repository has details as well as links to the exhaustive documentation.

      It is my hope that at least another person finds it useful

      github.com/mrdaemon/exosphere

      Alt...A poor quality animated gif of the exosphere CLI, showing hosts in a nice table. The UI is then launched, showing a dashboard of green tiles with a host in each. A command is launched and a modal dialog box shows up, then the inventory screen is switched to. The table shows hosts, their status and available updates, some of them are categorized as "security updates", in red. A host is selected, which opens a pane on the right displaying the details as well as a detailed list of updates. An update is selected, and another panel opens up, from the left this time, displaying the patch details. Current version, new version, source, etc.

        [?]Seth Larson »
        @sethmlarson@mastodon.social

        🚨 Be aware there's a potential phishing campaign likely targeting / package maintainers:

        discuss.python.org/t/phishing-

          [?]Leanpub »
          @leanpub@mastodon.social

          Practical Python for Production under Pressure (The Book + Resources) by Alex Telford is on sale on Leanpub! Its suggested price is $27.99; get it for $10.49 with this coupon: leanpub.com/sh/ajkAFuHH

            [?]Hugo van Kemenade »
            @hugovk@mastodon.social

            Glyph boosted

            [?]Ryan »
            @yantor3d@mas.to

            FINALLY.

            This week's department newsletter confirms - 2.7 is no longer being used in production at my job.

            Only 67 months late.

              [?]Leanpub »
              @leanpub@mastodon.social

              50+ App Features with Python: Implement feature-focused, code-driven Python capabilities with UX at the core leanpub.com/pythonapplication is the featured book on the Leanpub homepage! leanpub.com

              Find it on Leanpub!

                [?]Leanpub »
                @leanpub@mastodon.social

                Creating TUI Applications with Textual and Python by Michael Driscoll leanpub.com/textual

                Learn how to create amazing lightweight user interfaces using Python and Textual in your terminal!

                You will learn the basics of Textual and then create ten different applications.

                Find it on Leanpub!

                  Glyph boosted

                  [?]SnoopJ »
                  @SnoopJ@hachyderm.io

                  hivemind:

                  Is there a way to get `ruff check` *not* to treat code guarded by `sys.platform` as unreachable if the check would fail on the platform running the lint?

                  I am looking at adding `ruff check` to a project in the wake of a `NameError` that slipped past, but it seems to be incapable of catching this problem if it is guarded behind a platform check.

                  (if you reply to this to tell me to run `ruff check` on both platforms, you will be ZOTted, I mean the question the way I asked it)

                    [?]Hugo van Kemenade »
                    @hugovk@mastodon.social

                    Just released: Python 3.14.0 release candidate 1! 🚀🐍

                    🫖 T-strings!

                    🧵 Free-threading is officially supported!

                    🚇 Subinterpreters in the stdlib!

                    🗜️ Zstandard compression!

                    🎨 REPL syntax highlighting and tab autocomplete!

                    ⚠️ Better error messages!

                    📦 Are you a package maintainer? Prepare for 3.14 and report bugs!

                    🛞 No ABI changes: upload 3.14 wheels to PyPI

                    🥧 And much, much more!

                    discuss.python.org/t/python-3-

                      [?]Trey Hunner 🐍 »
                      @treyhunner@mastodon.social

                      The new t-string syntax in Python 3.14.0 now has documentation! 🎉

                      docs.python.org/3.14/library/s

                        [?]Leanpub »
                        @leanpub@mastodon.social

                        Mastering Modern Time Series Forecasting: A Comprehensive Guide to Statistical, Machine Learning, and Deep Learning Models in Python leanpub.com/mastering_modern_t by Valery Manokhin is the featured book on the Leanpub homepage! leanpub.com

                        Find it on Leanpub!

                          [?]SnoopJ »
                          @SnoopJ@hachyderm.io

                          @glyph @mitsuhiko I can tell you that in on Libera.chat, we have had very mixed results. AFAIK, not one of those users has become a continuing part of that community, but the things that lead most reliably to these users getting the help that they want are:

                          1) Avoid criticism of the chatbots. No room for persuasion generally, and flamewar is likely.

                          2) Much more patience is required. Choose your questions carefully, "too many" questions will lead to withdrawal. The extreme case is a user who is consulting the chatbot and the community simultaneously.

                          It's impossible to draw general inferences from an environment as pathological as IRC, but I would say these two points apply equally well to interpersonal interactions I have had in the local user group.

                          The overall impression I am left with is that the tools themselves disincentivize participation in a community, and incentivize talking to other humans only for swapping tips about tools, or as a way to get someone to "just" produce source code that fixes the tool's errors.

                            [?]Leanpub »
                            @leanpub@mastodon.social

                            New 📚 Release! Python in Practice: From Fundamentals to Functional Code by unseen Perspectives

                            Find it on Leanpub!

                            Link: leanpub.com/pythoninpractice

                              [?]Leanpub »
                              @leanpub@mastodon.social

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

                                [?]Leanpub »
                                @leanpub@mastodon.social

                                Real World Python leanpub.com/set/leanpub/realwo by Lukas Rieger and Christian Mayer is the featured Track of online courses on the Leanpub homepage! leanpub.com

                                  [?]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!

                                    [?]Leanpub »
                                    @leanpub@mastodon.social

                                    Leanpub book LAUNCH 🚀 Introduction to GIS Programming: A Practical Python Guide to Open Source Geospatial Tools by Qiusheng Wu

                                    Watch here:

                                    youtu.be/UFGSXOJ4nrE

                                      [?]Leanpub »
                                      @leanpub@mastodon.social

                                      New 📚 Release! Python in Practice: rom Fundamentals to Functional Code by unseen Perspectives

                                      Find it on Leanpub!

                                      Link: leanpub.com/pythoninpractice

                                        [?]JdeBP »
                                        @JdeBP@mastodonapp.uk

                                        If I were @standupmaths , there would be some Terrible Python Code parsing the output of dnsqr and doing line fitting to the TTL values; and an entire video on how to estimate from such data how many real machines under the covers serve up some seemingly single service on the Internet, and a second channel one on how people did that from the Netcraft uptime graphs that it used to present a couple of decades ago.

                                        And then a clever viewer switching from parsing text from a pipe to some proper Python DNS client library and achieving a 6283% speedup.

                                        (-:

                                          [?]Leanpub »
                                          @leanpub@mastodon.social

                                          Real World Python leanpub.com/set/leanpub/realwo by Lukas Rieger and Christian Mayer is the featured Track of online courses on the Leanpub homepage! leanpub.com

                                            [?]Leanpub »
                                            @leanpub@mastodon.social

                                            Learn Kubernetes & Docker - .NET Core, Java, Node.JS, PHP or Python by Arnaud Weil is free with a Leanpub Reader membership! Or you can buy it for $11.99! leanpub.com/k8s

                                              [?]Leanpub »
                                              @leanpub@mastodon.social

                                              Practical Python for Production under Pressure: Managing the insanity that is developing pipelines alongside a production at full speed leanpub.com/practical_python by Alex Telford is the featured book on the Leanpub homepage! leanpub.com

                                              Find it on Leanpub!

                                                [?]mirabilos »
                                                @mirabilos@toot.mirbsd.org

                                                “Fun” learning YAML properly?

                                                Okay. So. I have to learn ANSI-Bell for $ork. Meh. But okay.

                                                Pre-existing “fun”

                                                Playbooks are written in YAML. I hate YAML and have always used yaml2jsn to convert it to JSON (if possible) when I had to touch it in the past, as somehow a subset¹² of JSON is a valid subset of YAML accepted² by YAML parsers.

                                                ① you’ll have to make sure you don’t emit some codepoints literally, and to format numbers in scientific notation a specific way, but that’s generally a good advice for JSON emitters
                                                ② except JSON strings have codepoints outside the Basic Multilingual Plane encoded as two UTF-16 surrogates in \u#### notation whereas YAML parsers require it to be unescaped four-octet UTF-8, which breaks many JSON parsers; I ran into that just this week, in fact, for my RSS to Fediverse gateways…

                                                I personally find YAML unwritable, due to things like GitHub Actions’ example of…

                                                on:
                                                  push:
                                                    branches:
                                                      - main
                                                

                                                … does not convert to…

                                                {
                                                  "on": {
                                                    "push": {
                                                      "branches": [
                                                        "main"
                                                      ]
                                                    }
                                                  }
                                                }
                                                

                                                … but to:

                                                {
                                                  "1": {
                                                    "push": {
                                                      "branches": [
                                                        "main"
                                                      ]
                                                    }
                                                  }
                                                }
                                                

                                                (GitHub accepts both syntacēs in workflow files in JSON.)

                                                But let’s go back to the “self-explaining, obvious” YAML:

                                                on:
                                                  push:
                                                    branches:
                                                      - main
                                                

                                                So, we’ve already established that “on” is 1 and that something like country: no isn’t Norway but 0 (and real existing people have fallen into this, yet there are strong recommendations to not quote strings in YAML documents like ANSI-Bell playbooks, and somehow nobody even documents how strings are to be escaped and when they need to be escaped).

                                                But, riddle me this:

                                                push:
                                                <2 spaces>branches:
                                                

                                                But:

                                                branches:
                                                <2 spaces><hyphen-minus and space>main
                                                

                                                But:

                                                options:
                                                <no space><hyphen-minus and space>Ubuntu
                                                <no space><hyphen-minus and space>macOS
                                                

                                                (All examples from here.)

                                                I find this totally obvious and self-explanatory and consistent, and I totally know when to use two spaces, or dash-plus-space, or both.</sarcasm>

                                                But there is training material!

                                                One of the books I’ve been provided (actual published training material with an ISBN each) just hand-waves it away, the other says:

                                                The target section looks like the following code snippet:

                                                  - hosts: webservers
                                                    user: root
                                                

                                                […] As per the YAML syntax, the line must start with a dash. […]

                                                So, basically, the hosts: line must start with a dashhyphen-minus? I think not.

                                                The “Hands-on interactive lab and helpful resources” in the Red Hat “YAML essentials for Ansible” “learning path” is similarly deficient in even fundamentally basic explanation. 0/10, won’t recommend.


                                                Fun with training material, continued

                                                The hand-waving book links to http://www.yaml.org/start.html, so let’s read…

                                                a getting started guide for YAML

                                                … in my favourite webbrowser lynx:

                                                                                                   Page not found · GitHub Pages
                                                 
                                                 
                                                   File not found
                                                 
                                                   The  site  configured  at  this  address does not contain the requested
                                                   file.
                                                 
                                                   If  this is your site, make sure that the filename case matches the URL
                                                   as well as any file permissions.
                                                   For root URLs (like http://example.com/) you must provide an index.html
                                                   file.
                                                 
                                                   [1]Read  the full documentation for more information about using GitHub
                                                   Pages.
                                                   [2]GitHub Status — [3]@githubstatus
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                 
                                                Edit this document's URL: https://yaml.org/start.html
                                                

                                                … oooookay?

                                                But surely yaml.org has more material? *looks* … well, it has links to the specs and implementations. All very useful, but not right now for a hopefully structured introduction that explains the hows and ideally also the whys.

                                                Let’s follow the *New* link in which they announce the 1.2.2 spec… a blogpost. Okay. It has a title bar (brown background in Firefox) with a promising link:

                                                   Y
                                                 
                                                     *
                                                     * [2]Blog
                                                     * [3]Docs
                                                

                                                Let’s follow #3 to “Docs”!

                                                ←←←                                                                      Twitter
                                                   [1]Skip to main content
                                                 
                                                   Y
                                                 
                                                     *
                                                     * [2]Blog
                                                     * [3]Docs
                                                 
                                                     *
                                                     *
                                                 
                                                   [4]YAML Glossary
                                                 
                                                   [5]YAML Cheat Sheet
                                                 
                                                   (BUTTON) Menu
                                                 
                                                YAML Documentation
                                                     __________________________________________________________________
                                                 
                                                   YAML documentation is on the way!
                                                 
                                                #content
                                                

                                                This 80×24 screenshot is literally the entirety of the official #YAML documentation.

                                                Well, colour me impressed.

                                                Wait, no.

                                                Fuck that shit.

                                                Wait. This is for $dayjob. $customer also edits playbooks. I’m sure they’ll be delighted if I run things through yaml2jsn and commit the result as #JSON.

                                                Also, see footnote 2 above.

                                                Fuuuuck I’m SOL.

                                                So. Do I honestly have to wade through the spec to learn this?

                                                (Not that this is new. When I first learnt Python in 2008, I had to look at the C-language source code of the #Python interpreter to figure out things missing from the documentation. Which brings us back full circle to #ansible, the culprit of bringing this entire shitshow to my attention. I’m a programmer, not a DevCloudOp or something.)

                                                  [?]Leanpub »
                                                  @leanpub@mastodon.social

                                                  A Leanpub Frontmatter Podcast Interview with Alex Telford, Author of Practical Python for Production Under Pressure: Managing the insanity that is developing pipelines alongside a production at full speed | Watch here: youtu.be/uDziREzkpdY

                                                    [?]Leanpub »
                                                    @leanpub@mastodon.social

                                                    Leanpub book LAUNCH 🚀 Practical Python for Production Under Pressure: Managing the insanity that is developing pipelines alongside a production at full speed by Alex Telford youtu.be/nPvgqZZWJ5Y

                                                      [?]Hugo van Kemenade »
                                                      @hugovk@mastodon.social

                                                      Just released: em 4.4.0, the CLI emoji keyboard 🚀⌨️✨

                                                      ✨ Upgraded to emojilib 4.0.0: "The keywords include most if not all the :shortcode: from different platforms"

                                                      ✨ Dropped support for oh-so-very-nearly-EOL Python 3.8.

                                                      pypi.org/project/em-keyboard/

                                                        [?]Hugo van Kemenade »
                                                        @hugovk@mastodon.social

                                                        Just released: termcolor 2.5.0: ANSI colour formatting for terminal output
                                                        🚀🖥️🎨

                                                        🖥️ Added `strike` attribute
                                                        🖥️ Now generates and uploads attestations to PyPI
                                                        🖥️ Dropped support for oh-so-very-nearly-EOL Python 3.8

                                                        pypi.org/project/termcolor/2.5

                                                          [?]Hugo van Kemenade »
                                                          @hugovk@mastodon.social

                                                          Just released: Tablib 3.7.0 🚀

                                                          🦛 Add sparkly new Python 3.13
                                                          🦛 Drop EOL Python 3.8
                                                          🦛 Add styling to datetime, date and time values for ODS
                                                          🦛 Add styling for date/time types for XLS
                                                          🦛 Fix time and datetime export in ODS format
                                                          🦛 Avoid normalizing input twice in import_set/book

                                                          pypi.org/project/tablib/3.7.0/

                                                            Back to top - More...