python-uv-project-management-skill
This skill provides commands for managing Python projects using `uv`, a fast Python package installer and resolver.
When & Why to Use This Skill
This Claude skill streamlines Python development by leveraging `uv`, a high-performance package installer and resolver written in Rust. It enables developers to initialize projects, manage dependencies with lightning speed, and execute Python modules or web servers seamlessly, providing a modern and significantly faster alternative to traditional tools like pip, pipenv, or Poetry.
Use Cases
- Rapid Project Initialization: Quickly bootstrap new Python projects with a standardized structure and a pre-configured pyproject.toml file.
- High-Speed Dependency Management: Add, remove, or synchronize project libraries using uv's advanced resolution engine to minimize environment setup time.
- Streamlined Development Execution: Run Python scripts, modules, or local development servers (such as FastAPI/Uvicorn) directly through the agent with hot-reload support.
- Workflow Modernization: Replace legacy Python packaging workflows with a unified, performance-oriented toolset to improve developer productivity.
| name | python-uv-project-management-skill |
|---|---|
| description | This skill provides commands for managing Python projects using `uv`, a fast Python package installer and resolver. |
Python UV Project Management Skill
This skill provides commands for managing Python projects using uv, a fast Python package installer and resolver.
Commands
Initialize Project
uv init .
Creates a new Python project with basic structure and pyproject.toml.
Install Dependencies
- Single dependency:
uv add <package> - Multiple dependencies:
uv add <package1> <package2> <package3> - All dependencies from pyproject.toml:
uv sync
Running Code
- Run Python file:
uv run -m <module_path> - Example:
uv run -m src.main
Running Server
uv run uvicorn src.main:app --port 8000 --reload
Run a FastAPI/Uvicorn server with hot reload enabled.
Benefits of UV
- Fast dependency resolution and installation
- Modern Python packaging tool
- Drop-in replacement for pip/pipenv/poetry workflows
- Built with Rust for performance