What's up Python: MOAR uv, flask-like Django, debugging live processes...
Astral releases more stuff and takes on more stewardship. Who is surprised?
Python tutorials, tips, and insights for developers.
Astral releases more stuff and takes on more stewardship. Who is surprised?
You can test things in your venv without polluting it using uv run --with, create almost standalone scripts with uv init --script or convert a PDF to markdown by running uvx markitdown file.pdf.
What do watchdog, celery, and marshmallow have in common?They have all been replaced in my stack by projects from Samuel Colvin!
I did the light-speed last time, but what about sound speed? Well if you use a sonar, it turns out you can calculate the distance of objects using the timing of the echo:
What's left when you remove typing?
Python 3.13 is out.
The new REPL trickled down changes to PDB that I wanted for years.
You won’t find many resumes like Dr. Russel Keith-Magee’s: he worked on defense contracts, built his own company, was a core dev on Django, is a Python core dev, and is now paid by Anaconda to work on open source full-time.
I witness more and more code that historically has been on the backend going front.
Python 3.8 is dead, long live 3.13. Well, 3.12 if you play safe.
The Framework 13 laptop offers a customizable design, allowing users to easily swap and upgrade components. After months of use, it suits my needs enough that I want to keep it for years to come.
I received an interesting email from a reader who asked pragmatic questions about packaging in Python. It’s very fair, I have a lot of strong opinions on the matter, but how are they applied in real life?
UV last update raises high hopes for Python packaging.
This week Astral released a massive upgrade to UV, a cargo-like tool for Python. Founder Charlie Marsh takes us through the past and future of the project, explores some design decisions, and shares his thoughts on the challenges and solutions...
There are 3 sides to this story:
You can get test coverage of your code base by using pytest-cov:
Setuptools breaks packages, removing the test command
You don't have an imposter syndrome. You are an imposter.
(Or go to previous article of the series)
Built-in background tasks incoming from Django. Finally.
I'm lazy, and if I can make things happen for me with less effort, I will. Generating test data is one of those things. We can:
Most coders can’t program for 8 hours a day, at least on a regular basis. Those who can without chemical aids are not the majority, those who want to are less than that, and those who actually do even less.
If I have this code:
Hatch v1.10.0 supports inline dependencies
Sing with me!
Nope, this article is not about making Python and JS run very fast, it's about making a light speed effect for the fun of a hundred of drunk people.
In the previous article, I promised we would move from purely learning the mechanics to questions everybody ask themself when learning testing.
Cloudflare workers now support Python through pyodide
We move to a more realistic project setup that looks like this:
France is a nice place to live, but as an IT professional, it's not where the money and opportunities are.
pytest is a diamond of a framework, that reduces objections to eat our testing vegetables, while making the whole ordeal more productive, flexible, and faster to execute.
iOS support milestone
This intro is about dumb test writing, as it's the necessary foundation to learn what comes next.
You know those modal screens that interrupt your groove when you are surfing?
While it's never been easier to create software, the tenacity and work required to do so is undervalued.
redis is one of those tech like Sqlite or VLC, robust, works out of the box, started doing one things well, and added another, until years later it just became so good at so many things.
Astral releases uv, a new Python package manager
You know what bloggers do when they feel lazy? They write list-type articles like "10 ways to foo your bar" and "Most popular libs to reticulate splines".
TDD promises to make your code more flexible, with less side effect, and more reliable. You will think the shape of the problem, the boundaries, the contract, and end up with a better system.
JOY OF PROGRAMMING, a video game to practice your Python, is on steam.
We are going to revisit Guido's famous "Sorting a million 32-bit integers in 2MB of RAM using Python" article, explaining in detail how it works.
Conf is not a solved problem. While TOML, YAML and JSON are popular choices in the wild, I like to use Python for:
Today we'll see real-life examples of decorators so that you have a concrete idea on what to use them on:
The * operator has many usages in Python. Multiplication and power are the most common, but today we are going to see how it's used as the "splat" operator. If you come from JS, you know this as spread. It's those mysterious *args and **kwargs...
This article is about you.