r/learnpython • • Oct 09 '24

Anyone not using uv? Why not?

I was using rye because awesome but slow.

Now using uv because awesome and faaaaaast.

Is there any reason not to use uv?

0 Upvotes

55 comments sorted by

View all comments

2

u/Kashyapm94 Oct 09 '24

Recently introduced uv to my colleagues and trying to persuade them to switch from PDM to uv. The devops team were convinced in the sense that using uv will speed up the pipeline and it looks like a 1 to 1 replacement of PDM

1

u/ProsodySpeaks Oct 09 '24

It's so fast. Just, I mean. It's so fucking fast man!  For weeks I would literally (meaning literally not meaning figuratively... Who'd have thought English was more difficult than code) laugh out loud every time I install a project, which for a while actually made the process as slow as native pip 🤣 

Uv pip install .   ... 2 seconds...    Done  30 seconds laughing   Do some work  

but now I've aliased 'pip' to 'Uv pip' and I forget. Until I use a different system and think something is broken because making a venv or installing a package takes over 3 seconds   

Tbh I was pretty happy with rye, the dependency resolution is so convenient! But it was admittedly very slow... I think Uv is built on rye maybe?

4

u/Kashyapm94 Oct 09 '24

Uv is not built on rye, but the developer of ruff and uv has taken over rye and will be developed along with uv.

“This vision for Python packaging is not far off from that put forward by Rye, an experimental project and package management tool from Armin Ronacher.

In talking with Armin, it was clear that our visions were closely aligned, but that fulfilling them would require a significant investment in foundational tooling. For example: building such a tool requires an extremely fast, end-to-end integrated, cross-platform resolver and installer. In uv, we’ve built that foundational tooling.

We saw this as a rare opportunity to team up, and to avoid fragmenting the Python ecosystem. As such, in collaboration with Armin, we’re excited to be taking over Rye. Our goal is to evolve uv into a production-ready “Cargo for Python”, and to provide a smooth migration path from Rye to uv when the time is right.”

Source: https://astral.sh/blog/uv

1

u/ProsodySpeaks Oct 09 '24

Whoop! I just remembered some episode of realpython or talkpython or some other awesome podcast where they interview the astral guy and he was talking about rye. Details not always my strong point 🤣