logoalt Hacker News

zahlmanlast Tuesday at 3:26 PM1 replyview on HN

Yes, many things can use inline script metadata.

But a script only has one shebang.


Replies

networkedlast Tuesday at 4:29 PM

Perhaps a case for standardizing on an executable name like `python-script-runner` that will invoke uv, pipx, etc. as available and preferred by the user. Scripts with inline metadata can put it in the shebang line.

I see it has been proposed: https://discuss.python.org/t/standardized-shebang-for-pep-72....

show 1 reply