9 ms·
What makes it so great for me is the effortlessness. I often use Python for quick one off scripts. With UV I can just do `uv init`, `uv add` to add dependencie
by hansihe 2y ago
What makes it so great for me is the effortlessness.
I often use Python for quick one off scripts. With UV I can just do `uv init`, `uv add` to add dependencies, and `uv run` whatever script I am working on. I am up and running in under a minute. I also feel confident that the setup isn't going to randomly break in a few weeks.
With most other solutions I have tried in the Python ecosystem, it always seemed significantly more brittle. It felt more like a collection of hacks than anything else.
- aneidon 2y agoYou can even inline the dependencies: https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies https://docs.astral.sh/uv/guides/scripts/#declaring-script-d... That plus this: https://news.ycombinator.com/item?id=42855258 https://news.ycombinator.com/item?id=42855258 Makes it pretty seamless for one-off scripts.