/uv
Manage Python dependencies using uv.
Instructions
Sync Dependencies
Install all dependencies from uv.lock:
uv sync
Add Dependencies
Add a runtime dependency:
uv add <package>
Add a dev dependency:
uv add --dev <package>
Add multiple packages:
uv add httpx pydantic sqlalchemy
Add with version constraint:
uv add "httpx>=0.27"
Remove Dependencies
uv remove <package>
Update Dependencies
Update all dependencies:
uv lock --upgrade
uv sync
Update a specific package:
uv lock --upgrade-package <package>
uv sync
Run Commands
Run a command in the virtual environment:
uv run python -m <module>
uv run pytest
uv run ruff check .