python

Manage Python projects with uv for dependencies, environments, versions, and scripts.

40|12|Updated Oct 17, 2011
One-click install
npx skills add https://github.com/lanej/dotfiles --skill python-lanej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/lanej/dotfiles/tree/main/claude/skills/python
Command: npx skills add https://github.com/lanej/dotfiles --skill python-lanej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv.

What problem does it solve?

This Skill eliminates the complexity and slowness of traditional Python project management tools like pip, virtualenv, poetry, and pyenv. It streamlines your workflow with uv, an extremely fast, all-in-one solution.

Core Features & Use Cases

  • Fast Dependency Management: Quickly add, remove, and sync project dependencies using uv add and uv sync.
  • Script Execution: Run Python scripts and modules with automatic virtual environment handling via uv run.
  • Python Version Management: Install and pin specific Python versions for your projects using uv python install and uv python pin.
  • Use Case: Quickly set up a new Python project, add requests and pandas as dependencies, and then run your main.py script, all without manually creating virtual environments or waiting for slow installs.

Quick Start

Run the Python script 'analyze.py' with the 'requests' and 'pandas' libraries.

Frequently Asked Questions about python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace pip and virtualenv with a faster Python project management tool?

uv is a fast, all-in-one replacement for pip, virtualenv, poetry, and pyenv. It handles dependency management, virtual environment creation, and Python version pinning in a single tool, eliminating the slowness and complexity of traditional workflows.

How do I quickly set up a new Python project and add dependencies?

Run `uv init` to scaffold a project, then use `uv add` to install dependencies and create a lockfile automatically. uv handles virtual environment setup and dependency resolution in seconds without manual configuration.

Can I run Python scripts without manually activating a virtual environment?

Yes. `uv run` executes scripts and modules with automatic virtual environment handling. Dependencies are synced and isolated per-invocation, so you skip activation steps entirely.

How do I pin and install specific Python versions for my project?

Use `uv python install` to download a version and `uv python pin` to lock it to your project. uv manages multiple Python versions without pyenv, making version control reproducible across environments.

What's the fastest way to sync locked dependencies across team environments?

Run `uv sync` to install exact versions from a lockfile created by `uv lock`. This ensures reproducible builds and eliminates dependency drift between local, CI, and production setups.

Does uv support building and publishing Python packages?

Yes. uv includes `uv build` and `uv publish` commands for packaging and distribution. It integrates with your project's pyproject.toml to streamline the build-and-release workflow.