Fast Python Development with uv
- Track:
- Tooling, Packaging, Developer Productivity
- Type:
- Tutorial
- Level:
- intermediate
- Duration:
- 180 minutes
Abstract
Learn how to use uv for fast, reliable Python development. Created by Astral (the makers of Ruff), uv is a modern Python package and project manager written in Rust that can replace pip, pip-tools, virtualenv, poetry, pyenv, and more—with dramatic speed improvements.
This hands-on tutorial teaches you how to use uv for managing Python projects, dependencies, and tools. uv is designed to be a drop-in replacement for pip while offering a complete development workflow: project management, dependency resolution, virtual environments, Python version management, and tool installation.
Key advantages of uv:
- Speed: 10-100x faster than pip for most operations
- Compatibility: Works with existing pip workflows and requirements.txt files
- Complete workflow: Replaces multiple tools with a single, unified interface
- Reliability: Deterministic dependency resolution with lock files
You will learn:
- How to replace pip with uv for faster package installation
- How to manage Python projects with
pyproject.tomlanduv.lock - How to handle multiple Python versions without external tools
- How to manage workspaces for multi-package projects
- How to use
uvxfor running Python tools without installation - How to run single-file scripts with inline dependencies
- How to build and publish Python packages
- Best practices for using uv in real-world projects
A brief comparison with Pixi and other dependency management tools is included.