uv

Run Python scripts with inline dependencies and metadata via uv.

Updated Jan 28, 2021
One-click install
npx skills add https://github.com/Bowser1704/dotfiles --skill uv-bowser1704
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv
Source: https://github.com/Bowser1704/dotfiles/tree/main/pi/skills/uv
Command: npx skills add https://github.com/Bowser1704/dotfiles --skill uv-bowser1704

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

The uv Skill unit solves the problem of manually managing Python script execution and dependencies. It streamlines the process, making it easier to run scripts with specific dependencies and managing inline script metadata for standalone scripts.

Core Features & Use Cases

  • Script Execution: Run Python scripts with specified dependencies and inline metadata for standalone scripts.
  • Dependency Management: Add dependencies to projects with simple commands and use inline script metadata.
  • Use Case: Suppose you have a script that requires the 'requests' library. With uv, you can run it directly by adding the dependency, or include it within the script itself.

Quick Start

Use the uv skill to run a script named 'script.py' with the 'requests' library.

Frequently Asked Questions about uv

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

FAQPage Schema
How do I run a Python script with dependencies without setting up a virtual environment?

You can run standalone Python scripts by specifying required packages inline within the script metadata, streamlining execution without manual virtual environment setup.

What is the best way to manage inline dependencies for standalone Python scripts?

Managing inline dependencies for standalone scripts involves declaring required packages directly within the script file metadata, enabling ad-hoc injection during execution without a separate requirements file.

How does uv_build integrate with Python package builds?

The uv_build build system integrates with Python package builds by managing script execution and dependencies natively, allowing you to build packages while handling inline dependency requirements seamlessly.

Do I need uv installed to execute Python scripts with inline metadata?

Yes, installing the uv tool is a prerequisite because it provides the core engine required to parse inline script metadata, inject ad-hoc dependencies, and execute standalone Python scripts.

Can I add the requests library to a Python script using inline dependency management?

Yes, you can add the requests library by declaring it within the script's inline metadata, which allows the execution engine to automatically resolve and inject the dependency when running the script.