2 ms·
Lazy self-installing Python scripts with uv
- deleted 2y ago[deleted]
- d0mine 2y agotldr: shebang that runs uv which understands https://peps.python.org/pep-0723/ 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", # ] # ///