Loading...
Loading...
Modern Python development with uv, the fast Python package and project manager. Covers project management (uv init, uv add, uv sync, uv lock), virtual environments, Python version management (uv python install/pin), script runners (uv run), tool management (uvx), workspace support for monorepos, and publishing to PyPI. Includes Python patterns for FastAPI, Pydantic, async/await, type checking, pytest, structlog, and CLI tools. Use when initializing Python projects, managing dependencies with uv, configuring pyproject.toml, setting up virtual environments, running scripts, managing Python versions, building monorepos with workspaces, containerizing Python apps, or writing modern Python with type hints.
npx skill4agent add oakoss/agent-skills python-uvuvxsetup.py| Pattern | Command / API | Key Points |
|---|---|---|
| Init project | | Creates |
| Init library | | Creates |
| Init script | | PEP 723 inline metadata script |
| Add dependency | | Adds to |
| Add dev dependency | | Adds to |
| Add group dependency | | Custom dependency groups |
| Add optional | | Optional extras for libraries |
| Remove dependency | | Removes from |
| Lock dependencies | | Creates/updates |
| Upgrade in lockfile | | Targeted dependency upgrade |
| Sync environment | | Installs locked dependencies into |
| Sync for CI | | Fails if lockfile is stale |
| Sync frozen | | Skips lockfile verification |
| Run command | | Runs in project virtual environment |
| Run script | | Supports PEP 723 inline dependencies |
| Run in package | | Workspace-specific execution |
| Install Python | | Downloads and manages Python versions |
| Pin Python | | Writes |
| List Pythons | | Shows available and installed versions |
| Run tool | | Ephemeral tool execution |
| Tool with plugins | | Ephemeral tool with extra packages |
| Install tool | | Persistent global tool install |
| Workspace | | Monorepo multi-package support |
| Build package | | Creates sdist and wheel in |
| Publish | | Uploads to PyPI with trusted publishing |
| Export deps | | Generate requirements.txt from lockfile |
| Mistake | Correct Pattern |
|---|---|
Using | |
Activating venv manually before | |
Committing | Add |
Not committing | Always commit |
Using | |
Running | Only upgrade intentionally, use |
Mixing | Choose one tool for the project consistently |
Using | Use |
Forgetting | |
| Creating venv manually in uv project | |
Using | Use |
Not using | |
ExploreTaskcode-reviewerIf theskill is available, delegate containerization patterns to it. If thedockerskill is available, delegate CI/CD pipeline configuration to it. If thegithub-actionsskill is available, delegate API testing patterns to it. If theapi-testingskill is available, delegate error monitoring setup to it. If thesentry-setup-loggingskill is available, delegate Node.js logging patterns to it (Python equivalent covered here with structlog).pino-logging