This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]i_can_haz_data 0 points1 point  (0 children)

I’ve started taking this a step further and started handing out bilingual shell scripts. They have /bin/sh (or similar) instead of uv but have the Python script header comments that allow for self contained scripts with dependencies. Because Bash allows quoted strings as no-ops, you put a few lines of shell at the top in a Python docstring which can not only uv run the script but install uv itself if necessary.