Generate standalone Python scripts (not packaged projects) with PEP 723 inline metadata, a uv run shebang, and Typer CLI scaffolding. Use when the user wants a one-off executable script, automation tool, or runnable file that should declare dependencies inline and not live inside a package or project.
Create a single-file Python script that runs via uv run --script, declares dependencies in a PEP 723 block, and uses Typer for a future-proof CLI.
assets/pep723_typer_script.py and copy it into the target script.requires-python = ">=3.13" as the default.typer.#!/usr/bin/env -S uv run --script.chmod +x <script>).uv run --script script.py).Use assets/pep723_typer_script.py as the starting template for new scripts.