python-scripting
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Python scripting with uv and PEP 723 inline dependencies. Use when creating standalone Python scripts with automatic dependency management.
19installs
Source89jobrien/steve
Added on
NPX Install
npx skill4agent add 89jobrien/steve python-scriptingTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Python Scripting Skill
Creates self-contained Python scripts using uv and PEP 723 inline script metadata.
What This Skill Does
- Creates standalone Python scripts
- Uses PEP 723 inline dependencies
- Sets up argument parsing
- Handles input/output
- Configures reproducible builds
When to Use
- Standalone utility scripts
- One-off automation tasks
- Quick data processing
- CLI tools
- Scripts that need dependencies
Reference Files
- - Python script template with PEP 723 metadata
references/UV_SCRIPT.template.py
PEP 723 Format
python
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "rich",
# ]
# ///Running Scripts
bash
uv run script.py [args]Dependencies install automatically on first run.
Best Practices
- Use for reproducibility
exclude-newer - Include docstring with usage examples
- Use argparse for CLI arguments
- Return exit codes (0 success, non-zero error)
- Keep scripts focused on one task