running-python
Runs Python scripts and manages projects using uv. Use when asked to run a python script, execute python code, run pytest, or install packages. Always uses uv instead of pip or bare python.
When & Why to Use This Skill
This Claude skill enables high-performance Python execution and project management powered by 'uv'. It optimizes the development workflow by providing a faster, more reliable alternative to pip and poetry for running scripts, managing dependencies, and executing test suites within a standardized environment.
Use Cases
- Rapid Script Execution: Use 'uv run' to instantly execute Python scripts with automatic environment handling, ensuring all required dependencies are present.
- Efficient Package Management: Streamline project setup by using 'uv add' and 'uv sync' for lightning-fast installation and reproducible dependency locking.
- Automated Testing: Run comprehensive test suites using 'uv run pytest' to maintain code quality and catch bugs early in the development cycle.
- Environment Standardization: Enforce development best practices by replacing legacy pip commands with uv, reducing configuration errors and 'works on my machine' inconsistencies.
| name | running-python |
|---|---|
| description | Runs Python scripts and manages projects using uv. Use when asked to run a python script, execute python code, run pytest, or install packages. Always uses uv instead of pip or bare python. |
| version | 2.0.0 |
Python with uv
Always use uv - faster and more reliable than pip/poetry.
Commands
# Run scripts - ALWAYS use uv run
uv run python script.py
uv run pytest
# Dependencies
uv add numpy
uv sync
Rules
- Never
python script.py- alwaysuv run python script.py - Never
pip install- alwaysuv addoruv sync