python-scripting

Create standalone Python scripts with PEP 723 inline dependencies and uv execution.

4|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/89jobrien/steve --skill python-scripting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-scripting
Source: https://github.com/89jobrien/steve/tree/main/steve/skills/python-scripting
Command: npx skills add https://github.com/89jobrien/steve --skill python-scripting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you create standalone Python scripts with automatic dependency management using uv and PEP 723 inline dependencies. It eliminates the need to manually install packages and ensures reproducible, portable scripts.

Core Features & Use Cases

  • Standalone scripts: Build self-contained Python utilities with embedded dependency metadata.
  • Inline dependencies: Use PEP 723 metadata to declare required packages.
  • CLI-ready: Include argument parsing, input/output handling, and reproducible builds.
  • Use Case: Create a one-file data processing tool that runs anywhere with a compatible Python runtime.

Quick Start

Use the included UV_SCRIPT.template.py to generate a starter script and run it with uv to automatically install dependencies on first run.

Frequently Asked Questions about python-scripting

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

FAQPage Schema
How do I create a self-contained Python script that installs its own dependencies?

Self-contained Python scripts with automatic dependency management use PEP 723 inline metadata to declare required packages. uv executes the script and automatically installs dependencies on first run, eliminating manual package installation and ensuring reproducibility across environments.

What is PEP 723 and why use it for Python scripts?

PEP 723 defines a standard for embedding project metadata directly in Python script files. It lets you declare dependencies inline without separate configuration files, making scripts truly standalone and portable while maintaining full reproducibility.

Can I use uv to run Python scripts with automatic dependency resolution?

Yes. uv executes Python scripts and automatically resolves and installs dependencies declared via PEP 723 metadata on first execution. This eliminates the need for virtual environments or manual dependency management for one-off utilities and automation tasks.

How do I add command-line arguments to a Python script with automatic dependencies?

Combine argparse for CLI argument parsing with PEP 723 inline dependencies. The script template includes argument handling patterns, letting you build CLI tools that parse user input, manage external library dependencies, and run reproducibly with uv.

What are the limitations of embedding dependencies in a single Python file?

Inline dependency metadata works best for standalone utilities and small automation tasks. It's less suited for large multi-file projects or complex dependency graphs; use traditional packaging tools like pip and requirements.txt for those scenarios.

Do I need to install uv separately to run these self-contained scripts?

Yes. uv must be available in your environment to execute scripts with embedded PEP 723 metadata and automatic dependency resolution. Once installed, uv handles all downstream package installation transparently.