[One Package Per Day] Speed Up Your Python Workflow with uv
By ducpm, at: Feb. 12, 2026, 9:52 a.m.
Estimated Reading Time: __READING_TIME__ minutes
The "Why" (Beyond Just Speed)
While everyone talks about the 100x speedup, the real value of uv is deterministic simplicity.
-
Universal Lockfiles:
uv.lockis platform-agnostic. You can resolve dependencies on macOS and deploy them to a Linux container with zero "resolution drift."
-
Tool Autonomy:
uvxreplacespipx. It allows you to run CLI tools (likerufforblack) without even having them in your project’spyproject.toml.
-
Managed Runtimes: No more
pyenvor manual Python installs.uvdownloads and manages Python binaries directly, ensuring every developer on your team is on the exact same patch version of CPython.
Unique Workflow: The "Project-Less" Script
One of uv’s most underrated features is inline dependency metadata (PEP 723). You can share a single .py file that contains its own requirements.
# /// script
# dependencies = ["httpx", "rich"]
# ///
import httpx
from rich import printprint(httpx.get("https://api.github.com").json())
Execute it with: uv run script.py
uv creates a hidden, temporary environment, installs the dependencies, and runs the script in one motion. No venv cleanup required.
Production-Ready Strategy
For Glinteco’s enterprise deployments, we use uv to slash Docker build times.
-
The Layer Trick: Use
uv pip compileto generate arequirements.txtfrom yourpyproject.tomlfor standard compatibility, or better yet, use theuvsync feature in your Dockerfile.
-
Zero-Install CI: Since
uvis a single binary, you can curl it into a CI runner and have your entire environment ready in under 5 seconds—no more waiting forpipto "think."
Comparison: The New Hierarchy
| Old Tool | uv Equivalent | Why it’s better |
|---|---|---|
| pip install | uv pip install | Parallelized, global cache, reflink-based. |
| pyenv install | uv python install | Zero system overhead; downloads pre-built binaries. |
| pipx run | uvx / uv tool run | Significantly faster ephemeral environment creation. |
| poetry / pdm | uv project | Faster resolution and a cleaner, universal lockfile. |
The Verdict
uv isn't just a faster pip; it is a total reimagining of the Python developer experience. It treats Python as a professional ecosystem rather than a collection of duct-taped scripts.
Start here:
curl -LsSf https://astral.sh/uv/install.sh | sh