Get the latest tech news
Using uv as your shebang line
An article by Rob Allen
Since discovering uv and inline script metadata, I’ve started using Python far more for these. As~/bin is on my path, I want to run the script by calling it directly on the command line. Once I’ve ensured that that script has executable permissions via chmod a+x {filname}, I’m now good to go with simple command line scripts written in Python that automatically handle their dependencies!
Or read this on Hacker News