Home

1 comment

d0mine5 months ago
tldr: shebang that runs uv which understands <a href="https:&#x2F;&#x2F;peps.python.org&#x2F;pep-0723&#x2F;" rel="nofollow">https:&#x2F;&#x2F;peps.python.org&#x2F;pep-0723&#x2F;</a> to run Python script with dependencies installed on-the-fly (cached):<p><pre><code> #!&#x2F;usr&#x2F;bin&#x2F;env -S uv run --script # &#x2F;&#x2F;&#x2F; script # requires-python = &quot;&gt;=3.12&quot; # dependencies = [ # &quot;ffmpeg-normalize&quot;, # ] # &#x2F;&#x2F;&#x2F;</code></pre>