| name | uv-package-manager |
| description | UV package manager for fast Python dependency management and virtual environments. Use when installing packages, managing dependencies, or setting up virtual environments. |
| allowed_agents | ["experiment","native_coding"] |
| preload_for | ["experiment","native_coding"] |
UV Package Manager
uv is an extremely fast Python package installer (10-100x faster than pip), written in Rust.
Essential Commands
uv venv
uv venv --python 3.12
uv run python script.py
uv run pytest
uv add requests pandas
uv add --dev pytest black
uv remove requests
uv sync
uv lock
uv pip install -r requirements.txt
uv pip install package_name
uv pip list
uv python install 3.12
uv python pin 3.12
Key Patterns
- New project:
uv init . && uv add <deps> && uv run python main.py
- Existing project:
uv sync to install all deps from lockfile
- Run without activating venv: Always use
uv run <command> instead of activating
- Prefer
uv add over uv pip install — it updates pyproject.toml and lockfile