What problem does it solve?
uv provides a streamlined way to run Python scripts and manage their dependencies without relying on pip, virtual environments, or manual setup, reducing boilerplate and speeding up automation.
Core Features & Use Cases
- Run scripts easily with uv run script.py to execute code with automatic context handling.
- Add and pin dependencies via uv add, enabling ad-hoc dependency management and reproducible environments.
- Inline script metadata support allows standalone scripts to declare dependencies and Python version requirements for portability.
- Built-in verification and reproducibility workflows include --with for ad-hoc dependencies, uv lock, and uv_build for packaging pure-Python projects.
Quick Start
Create a script with inline metadata and run it with uv run script.py.