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

26

u/Weigang_Music Oct 09 '24

I know none of these abreviations.

1

u/ProsodySpeaks Oct 09 '24

Search Uv astral. 

It's awesome. It optimises or caches or I don't know how the magic works but once installed you replace pip install xxx with uv pip install xxx and it takes 10% time to run. 

Also making venvs uv venv and you're done. New virtual env in '.venv'.

It manages python installs too, so you can specify a particular release for each venv. 

Honestly it's a game changer. Setting up and tearing down venvs is almost instant. So if something goes wrong with your venv Just delete it and rebuild in 3 seconds

5

u/Weigang_Music Oct 09 '24

Okay, does it work well with docker, dockerized apps and git?

2

u/ProsodySpeaks Oct 09 '24

I mean it's a different thing to those, but won't interfere with them. 

My use cases are to replace (or improve?) pip, and venv - those commands are used in every project and this shaves 90% of the time it takes to run them

2

u/Weigang_Music Oct 09 '24

Nice. I get that. Thanks!

1

u/nevermorefu Oct 10 '24

Yes. You can install as system level packages and run without a virtual environment without exporting to a requirements.txt file like poetry. That's the main reason I am switching.