huh - just learned about inline script metadata in Python files.
@gvwilson most of my single-file scripts these days are written that way with uv in the shebang, so dependencies are installed on run https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file
Running scripts | uv

A guide to using uv to run Python scripts, including support for inline dependency metadata, reproducible scripts, and more.