uv

Run Python scripts with uv using inline metadata for reproducible execution.

Updated Dec 11, 2024
One-click install
npx skills add https://github.com/huaxel/dotfiles --skill uv-huaxel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv
Source: https://github.com/huaxel/dotfiles/tree/main/skills/uv
Command: npx skills add https://github.com/huaxel/dotfiles --skill uv-huaxel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

uv simplifies executing Python scripts by centralizing execution logic and inline metadata, reducing boilerplate and drift across environments.

Core Features & Use Cases

  • Inline script metadata support to declare dependencies and Python versions.
  • Reproducible execution with ad-hoc dependency management and optional build backend integration.
  • Simple workflows for initialization, running scripts, and dependency management.

Quick Start

Run a Python script with uv using its inline metadata to ensure reproducible execution.

Frequently Asked Questions about uv

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

FAQPage Schema
How do I run Python scripts with inline dependency metadata?

Running Python scripts with inline metadata is automated by centralizing execution logic, resolving declared dependencies on-demand, and ensuring reproducible execution across different machines without manual environment setup.

What is inline script metadata for reproducible Python execution?

Inline script metadata is a mechanism to declare dependencies and Python versions directly within the script file, enabling reproducible execution by allowing package managers to automatically create consistent environments on-demand.

How do I manage ad-hoc Python dependencies for a single script?

Ad-hoc dependency management is handled by declaring required packages directly in the script's inline metadata, which allows the execution tool to automatically resolve and install them on-demand for that specific script run.

Can I use a Python build backend for packaging with uv workflows?

Yes, the workflow supports optional integration with a Python build backend, allowing you to transition from running standalone scripts with inline dependencies to packaging your project for distribution.

Does uv support initialization commands for new Python projects?

Yes, the workflow provides simple initialization commands to quickly set up project structures, enabling straightforward workflows for initialization, running scripts, and managing dependencies consistently.