Lazy self-installing Python scripts with uv
treyhunner.comtldr: shebang that runs uv which understands https://peps.python.org/pep-0723/ to run Python script with dependencies installed on-the-fly (cached):
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "ffmpeg-normalize",
# ]
# ///