A minimal template project demonstrating uv, an extremely fast Python package and project manager.
uv is a modern Python project and package manager written in Rust. It provides:
- Fast package resolution and installation – orders of magnitude faster than pip
- Unified project management – handles dependencies, virtual environments, and script execution
- Python version management – download and manage multiple Python versions
- PEP-compliant tools – supports pyproject.toml, requirements.txt, and more
# On macOS, Linux or Windows (WSL)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or with Homebrew (macOS/Linux)
brew install uvFor other installation methods, see the official installation guide.
# Run the main script
uv run main.pyuv automatically creates a virtual environment and installs dependencies as needed.
# Add a new package
uv add package-name
# Add a development-only dependency
uv add --dev pytestpyproject.toml– Project metadata and dependencies (PEP 621)main.py– Example Python script.venv/– Virtual environment (created automatically by uv)