π¦ ClawHub
uv-package-manager
by @wu-uk
Master the uv package manager for fast Python dependency management, virtual environments, and modern Python project workflows. Use when setting up Python pr...
π‘ Examples
Create a New Project
# Create new project with virtual environment
uv init my-project
cd my-projectOr create in current directory
uv init .Initialize creates:
- .python-version (Python version)
- pyproject.toml (project config)
- README.md
- .gitignore
Install Dependencies
# Install packages (creates venv if needed)
uv add requests pandasInstall dev dependencies
uv add --dev pytest black ruffInstall from requirements.txt
uv pip install -r requirements.txtInstall from pyproject.toml
uv sync
π Tips & Best Practices
Project Setup
1. Always use lockfiles for reproducibility 2. Pin Python version with .python-version 3. Separate dev dependencies from production 4. Use uv run instead of activating venv 5. Commit uv.lock to version control 6. Use --frozen in CI for consistent builds 7. Leverage global cache for speed 8. Use workspace for monorepos 9. Export requirements.txt for compatibility 10. Keep uv updated for latest features
Performance Tips
# Use frozen installs in CI
uv sync --frozenUse offline mode when possible
uv sync --offlineParallel operations (automatic)
uv does this by default
Reuse cache across environments
uv shares cache globally
Use lockfiles to skip resolution
uv sync --frozen # skips resolution
TERMINAL
clawhub install fix-build-agentops-uv-package-manager