Stefan Scherfke

Stefan Scherfke

@stefan.sofa-rockers.org

Python engineer at energy & meteo systems, maintainer of Typed Settings

42 followers31 following36 posts

In case you're wondering why I haven't been as active here lately and why there hasn't been a new #TypedSettings release in a while, I've shifted my priorities a bit and have been spending more time outdoors: pixelfed.de/p/sscherfke/... But I’m planning to do a release with some nice features soon.

pixelfed.deStefan Scherfke (@sscherfke@pixelfed.de)[Bikepacking Denmark, Pt. 1] Returned from my long planned bikepacking trip to Denmark last weekend. I rode up the west coast from Niebüll to Skagen (mainly on the west coast route, but with several d...

Stefan Scherfke reposted

since I see a lot of gloom re Astral x OpenAI: ⁃ Even if Astral actively (malice) or passively (neglect) ruins uv, Python packaging is 1000x better today than 2 yrs ago. 1/4

Stefan Scherfke reposted

Fuck you people. Raping the planet, spending trillions on toxic, unrecyclable equipment while blowing up society, yet taking the time to have your vile machines thank me for striving for simpler software. Just fuck you. Fuck you all. I can't remember the last time I was this angry.

(2/2) 2. Put the following into ".config/nvim/queries/python/injections.scm": ; Jinja in ".*TEMPLATE.*" assignments (assignment left: (identifier) @_var right: (string (string_content) @injection.content (#set! injection.language "jinja")) (#match? @_var "TEMPLATE") )

Stefan Scherfke reposted

Replying to @hugovk.dev

Just released: Python 3.14.0 beta 2! 🚀🐍 🥧 Deferred type annotation evaluation! 🥧 T-strings! 🥧 Zstandard! 🥧 Syntax highlighting in the REPL! 🥧 Colour in unittest, argparse, json and calendar CLIs! 🥧 UUID v6-8! 🥧 And much more! discuss.python.org/t/python-3-1... #Python #CPython #Python314 #release

discuss.python.orgPython 3.14.0 beta 2 is here!Here’s the second 3.14 beta. https://www.python.org/downloads/release/python-3140b2/ This is a beta preview of Python 3.14 Python 3.14 is still in development. This release, 3.14.0b2, is the second...

Stefan Scherfke reposted

Today, we’re announcing the preview release of ty, an extremely fast type checker and language server for Python, written in Rust. In early testing, it's 10x, 50x, even 100x faster than existing type checkers. (We've seen >600x speed-ups over Mypy in some real-world projects.)

Stefan Scherfke reposted

Tell me your team is entirely comprised of over-confident twenty-somethings without telling me your team is entirely comprised of over-confident twenty-somethings

Katie Drummond@katie-drummond.bsky.social

NEW: DOGE is planning to migrate the Social Security Administration codebase to a new programming language. This would normally take years. DOGE wants it done in months. That could put benefits for millions of Americans at risk. Scoop from @makenakelly.bsky.social www.wired.com/story/doge-r...

Stefan Scherfke reposted

Finally, here's attrs 25.2.0: vroom–vroom edition! attrs always had impressive runtime performance because we generate optimal code for your configuration. But now @tinche.bsky.social also made this code gen 30–50% faster! This is the last version to support Python 3.8. github.com/python-attrs...

github.comRelease 25.2.0 · python-attrs/attrsHighlights Vroom–vroom edition! attrs had always impressive runtime performance because we generate optimal code for your configuration. But now, said code generation is 30–50% faster, too! This is...

Stefan Scherfke reposted

I just released quattro 25.1.0. The biggest change is the addition of `create_background_task` to our TaskGroup class. Background tasks are similar to normal tasks, but they don't block the TaskGroup exit. Instead, they get cancelled if they're still running.

Stefan Scherfke reposted

How to create a Python CLI that's globally available in your system in 5 easy steps. 1. Install uv 2. Init project with `uv init --app --package mycli` 3. Write code 4. Install with `uv tool install . -e` 5. Use `mycli` anywhere in your computer

My brother is raising funds for establishing a partnership between Luckau (Wendland), Germany and Faléa, Mali. Most of the expenses are already covered but they need some extra money for the initial trip to Africa. You can find more info here: www.gofundme.com/f/luckau-falea Thank you ❤️

gofundme.comDonate to PARTNERPROJEKT mit der Gemeind Faléa in Mali, organized by Mathias ScherfkeGemeindepartnerschaft Luckau (Wendland) – Faléa (Mali) Ein Leuchtturmpr… Mathias Scherfke needs your support for PARTNERPROJEKT mit der Gemeind Faléa in Mali

Stefan Scherfke reposted

I sometimes receive emails from someone I've never met thanking me for something that I made or was part of well over a decade ago. I always appreciate it. If you're grateful for something, thank someone. They may not respond, but I'd be willing to bet they'll appreciate it.

Stefan Scherfke reposted

Being 100% serious, for me what's described here is a big part of Rust's success. It's fun. And it makes things that are often un-fun (installing the toolchain, adding dependencies) easy.

Stefan Scherfke reposted

I think this is the best outcome for the moment. We don't fully understand the problem of lockfiles in Python yet and a universal standard would come too early. bsky.app/profile/snar...

Brett Cannon@snarky.ca

No one is getting a lock file standard for Christmas, but you may get a standardized `requirements.txt` file before April Fools. At this point there's no chance of a single lock file format all the major workflow tools will use directly, but there will at least be something they can all export to.

You may not like #GitLab and the way pipelines are defined there. But I had exactly zero problems with broken or malicius CI actions I imported from somewhere. I also think that declarative script blocks with bash commands are _a lot_ easier to read than the #GitHub actions import jungle.

Stefan Scherfke reposted

Stefan Scherfke reposted

One of the fun things you can do with uvx to just … run python. Super useful to play around with a python package without having to make a virtualenv somewhere.

Stefan Scherfke reposted

Publisher: Do you want to put an LLM clause in the copyright statement? Me: Definitely. How specific can we get? Publisher: As specific as you like.