manage-python-env

Manage Python environments and dependencies with UV commands.

Updated Apr 23, 2024
One-click install
npx skills add https://github.com/dudusoar/VRP-Toolkit --skill manage-python-env
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-python-env
Source: https://github.com/dudusoar/VRP-Toolkit/tree/main/.claude/skills/manage-python-env
Command: npx skills add https://github.com/dudusoar/VRP-Toolkit --skill manage-python-env

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a concise, practical guide to managing Python environments and package dependencies with UV, reducing setup time and token usage for project bootstrapping.

Core Features & Use Cases

  • Installation & Verification: Install UV and verify its version to ensure a consistent toolchain.
  • Project Bootstrap: Initialize a project, optionally pin a Python version, and create a portable structure.
  • Environment & Dependency Workflows: Create and activate virtual environments, manage packages, lock dependencies, and export requirements for reproducibility.
  • Use Case: Onboard a new data science project quickly and share a repeatable setup with teammates.

Quick Start

uv init my-project uv venv source .venv/bin/activate uv add numpy pandas uv lock uv export --format requirements-txt > requirements.txt

Frequently Asked Questions about manage-python-env

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

FAQPage Schema
How do I set up a Python project and manage dependencies with UV?

To manage Python dependencies with UV, initialize your project using `uv init`, create a virtual environment with `uv venv`, and add packages using `uv add`. This workflow creates a portable structure and handles dependency locking automatically for reproducible setups.

What is the best way to lock Python dependencies and export requirements?

The best way to lock Python dependencies is using the `uv lock` command to ensure reproducible environments. You can then export these locked dependencies into a standard format by running `uv export --format requirements-txt > requirements.txt` for broader compatibility.

Can I pin a specific Python version when bootstrapping a new project?

Yes, you can pin a specific Python version during project bootstrap. UV allows you to specify and install exact Python versions, ensuring that your local environment matches your team's setup and maintaining consistent toolchain execution across different machines.

Does UV replace virtualenv for creating Python environments?

UV streamlines Python environment creation as a faster alternative to traditional virtualenv workflows. It uses `uv venv` to quickly generate and activate isolated environments while integrating package installation and dependency locking into a single cohesive command structure.

Why use UV for Python package management instead of standard tools?

UV reduces setup time and token usage for project bootstrapping compared to standard tools. It consolidates environment creation, package installation, dependency locking, and requirements exporting into a single fast command-line interface, ensuring efficient and reproducible Python setups.