←back to thread

/usr/bin/env -S uv run

(simonwillison.net)
124 points jcbhmr | 4 comments | | HN request time: 0.795s | source
1. p4bl0 ◴[] No.42202491[source]
It's a neat trick, but it still depends on uv being installed and network connectivity.

What's the advantage of this that makes it worth despite these constraints, compared to e.g. using pyinstaller [1] to build and distribute a single executable file with the python interpreter and all the dependencies of your project bundled in it in the exact versions you chose in your development virtual environment?

[1] https://pyinstaller.org/

replies(2): >>42202645 #>>42202823 #
2. Hikikomori ◴[] No.42202645[source]
Can just share a clear text script with a colleague over slack and let him just run it without extra steps.
3. chippiewill ◴[] No.42202823[source]
It's not for production grade stuff, it's for small scripts you want to send to someone for a little job.
replies(1): >>42203224 #
4. fernandotakai ◴[] No.42203224[source]
sometimes, i want to share a script with a friend or with a coworker and setting everything up from scratch is such a pain.

this makes everything SO much easier.