4 ms·
I suspect that my normal workflows might just have evolved to route around the pain that package management can be in python (or any other ecosystem really). I
by dirkc 7mo ago
I suspect that my normal workflows might just have evolved to route around the pain that package management can be in python (or any other ecosystem really).
In what situations are uv most useful? Is it once you install machine learning packages and it pulls in more native stuff - ie is it more popular in some circles? Is there a killer feature that I'm missing?
- dec0dedab0de 7mo agoUV is most useful because it is so much faster than everything else. All the other features I could do without.
- dirkc 7mo agoYep, the speed is nice, I can't argue with that!
- politelemon 7mo agoImo, uv scripts with the dependencies in the header. https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...
- dirkc 7mo agoI guess that could be useful. I don't have many standalone python scripts, and those that I do have are very basic. It would be really nice if that header could include sandboxing!
- simonw 7mo agoSo much this! I've been bugging Astral about addressing the sandboxing challenge for a while, I wonder if that might take more priority now they're at OpenAI?
- simonw 7mo agoIf you have hundreds of different Python projects on your machine (as I do) the speed and developer experience improvements of uv make a big difference. I love being able to cd into any folder and run "uv run pytest" without even having to think about virtual environments or package versions.
- dirkc 7mo agoDo you run those projects on the host system as your normal user without any isolation?
- simonw 7mo agoYes, which makes me very vulnerable to supply chain attacks.
- dirkc 7mo agoYikes! I had a scare once, and since then I only run sandboxed code or scripts I've written with minimal 3rd party deps. I assume you have other mitigations in place?
- simonw 7mo agoNot really. I have good backups and I try to stick with dependencies I trust. I do a lot of my development work using Claude Code for web which means stuff runs in containers on Anthropic's servers, but I run things on my laptop most days as well.