Discover the launch of a new type checker that boosts performance for large Python projects. Learn about the UV build backend, making strides towards stability and efficiency. Dive into tips for refactoring complex Boolean expressions for better code readability. Explore the Fast API Machine Learning Skeleton, a game-changer for deploying models as APIs. The discussion wraps up with insights on automation in coding and a personal story from a local fair, blending tech talk with community vibes.
26:36
forum Ask episode
web_stories AI Snips
view_agenda Chapters
auto_awesome Transcript
info_circle Episode notes
insights INSIGHT
TY Type Checker and Web Playground
TY is a type checker by Astral that offers faster performance on large codebases, similar to Ruff for linting.
It runs in WebAssembly allowing type checks directly in the browser via an online playground.
insights INSIGHT
UV Build Backend Is Stable and Fast
The UV build backend from Astral is now stable and much faster than alternatives like hatchling or setuptools.
It improves build speeds by 10-35x, making local Python workflows faster and more efficient.
volunteer_activism ADVICE
Refactoring Long Boolean Expressions
Refactor long boolean expressions by splitting them into multiple lines with operators at the beginning for readability.
Use named variables or functions for sub-expressions but beware of losing short-circuit evaluation for expensive checks.
Get the Snipd Podcast app to discover more snips from this episode
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.
Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
“The uv build backend is now stable, and considered ready for production use. An alternative to setuptools, hatchling, etc. for pure Python projects, with a focus on good defaults, user-friendly error messages, and performance. When used with uv, it's 10-35x faster.”
“(In a future release, we'll make this the default.)”
I believe it’s faster, but I agree with Brett Cannon in asking “What's being benchmarked? I'm not sure what a "backend sync" is referring to other than maybe installing the build back-end?”
Starting from Ruff version 0.11.13, most changes from Airflow 2 to Airflow 3 can be automated using AIR3. (It’s still in preview so a “—-preview” flag is needed)