Re:Uv's killer feature is pulling in local dependencies
by throwup238 on Sunday January 12, 2025 @04:12PM
(#42676986)
The uv shebang is definitely the killer feature for me, especially with so much of the AI ecosystem tied up in Python. Before, writing Python scripts was a lot more painful requiring either a global scripts venv and shell scripts to bootstrap them, or a venv per script.
Iām sure it was already possible with shebangs and venv before, but uv really brings the whole experience together for me so I can write python scripts as freely as bash ones.
Re:Uv's killer feature is pulling in local dependencies
by FergusArgyll on Sunday January 12, 2025 @04:22PM
(#42677054)
Yes! since that Simon Willison article, I've slowly been easing all my scripts into just using a uv shebang, and it rocks! I've deleted all sorts of .venvs and whatnot. really useful
Re:Uv's killer feature is pulling in local dependencies
by dingdingdang on Sunday January 12, 2025 @06:08PM
(#42677953)
Super neat re Willison article.. would something like this work under powershell though?!
1. `uvx --from git+https://github.com/httpie/cli httpie` 2. https://simonwillison.net/2024/Aug/21/usrbinenv-uv-run/ uv in a shebang