python-uv-project-management-skill

This skill provides commands for managing Python projects using `uv`, a fast Python package installer and resolver.

📖 中文导读:This skill provides commands for managing Python projects using `uv`, a fast Python package installer and resolver. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

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