by @89jobrien
Python scripting with uv and PEP 723 inline dependencies. Use when creating
Creates self-contained Python scripts using uv and PEP 723 inline script metadata.
references/UV_SCRIPT.template.py - Python script template with PEP 723 metadata#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# "rich",
# ]
# ///
uv run script.py [args]
Dependencies install automatically on first run.
exclude-newer for reproducibility