uv

Manages Python projects, dependencies and virtual environments using uv tool.

Updated Feb 21, 2024
One-click install
npx skills add https://github.com/zhongjis/nix-config --skill uv-zhongjis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv
Source: https://github.com/zhongjis/nix-config/tree/main/modules/home-manager/features/ai-tools/common/skills/general/uv
Command: npx skills add https://github.com/zhongjis/nix-config --skill uv-zhongjis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines Python project setup, dependency management, virtual environment handling, and script execution using the fast uv tool.

Core Features & Use Cases

  • Project Initialization: Quickly set up new Python applications or libraries.
  • Dependency Management: Add, remove, and sync project dependencies efficiently.
  • Virtual Environment Handling: Automatically manage virtual environments for projects.
  • Script Execution: Run Python scripts and modules within managed environments.
  • Use Case: When starting a new Python project, use this Skill to initialize it, add necessary libraries like requests and pytest, and ensure the environment is correctly set up for development.

Quick Start

Use the uv skill to add the 'requests' package to the current Python project.

Frequently Asked Questions about uv

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

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

You can initialize a new Python project, add libraries like requests, and let the uv tool automatically manage the virtual environment and synchronize dependencies for fast setup.

What is the best way to handle Python virtual environments automatically?

The best way to handle Python virtual environments automatically is by using a fast package manager like uv, which creates and synchronizes environments during dependency addition and script execution.

Can I run Python scripts within a managed virtual environment?

Yes, you can execute Python scripts and modules within managed environments using uv, which ensures the script runs with the correct synchronized project dependencies and isolated virtual environment.

Does this approach work for managing multiple Python versions?

Yes, this approach works for managing multiple Python versions because the uv tool explicitly supports Python version management alongside project initialization and dependency synchronization.

How do I add and remove project dependencies efficiently?

You can add and remove project dependencies efficiently by using uv to perform fast package resolution, automatically updating the virtual environment and synchronizing the project requirements.

Why use uv instead of other Python package managers?

You should use uv instead of other Python package managers because it provides fast package resolution and virtual environment creation, streamlining project initialization and dependency synchronization.