←back to thread

741 points chirau | 9 comments | | HN request time: 1.065s | source | bottom
Show context
acheong08 ◴[] No.44358882[source]
Just a few months back I said I would never use uv. I was already used to venv and pip. No need for another tool I thought.

I now use uv for everything Python. The reason for the switch was a shared server where I did not have root and there were all sorts of broken packages/drivers and I needed pytorch. Nothing was working and pip was taking ages. Each user had 10GB of storage allocated and pip's cache was taking up a ton of space & not letting me change the location properly. Switched to uv and everything just worked

If you're still holding out, really just spend 5 minutes trying it out, you won't regret it.

replies(11): >>44359172 #>>44359456 #>>44359522 #>>44359897 #>>44359946 #>>44360000 #>>44360262 #>>44360544 #>>44360813 #>>44361022 #>>44363908 #
1. psychoslave ◴[] No.44359456[source]
I wonder how it compares with something more green generalist like "mise", to which I migrated after using "ASDF" for some time.
replies(4): >>44359521 #>>44360474 #>>44362104 #>>44363100 #
2. wrboyce ◴[] No.44359521[source]
I use both! uv installed globally with mise, and uv tools can then be managed via “miss use -g pipx:foo”.
replies(1): >>44361000 #
3. codethief ◴[] No.44360474[source]
Similarly to the sibling I also use both. I let mise manage my uv version (and other tools) and let uv handle Python + PyPI Packages for me. Works great!

There's also some additional integration which I haven't tried yet: https://mise.jdx.dev/mise-cookbook/python.html#mise-uv

4. icedchai ◴[] No.44361000[source]
Same! I recently set up some dev environments with mise. My old ones are still using poetry, the new ones have uv. uv is incredibly snappy. It's like night and day!
5. varikin ◴[] No.44362104[source]
Think of uv more as like npm or other thing like that. The new Python pyproject.toml is similar package.json. It defines the project description, list of dependencies, and other hooks. Uv is a package/project tool using pyproject.toml. It is easy to manage dependencies, build and publish to PyPi, add hooks to run tests, linters, or whatever, again much like package.json. It also manages the virtualenv automatically, though you can manage it yourself.
6. elbear ◴[] No.44363100[source]
Thanks for mentioning mise. I'm more interested in it for the task running feature. I couldn't figure out how to have shell scripts in Justfile, so I gave up on it.
replies(1): >>44370018 #
7. pentaphobe ◴[] No.44370018[source]
Out of interest - What wasn't working for you?

I use Just inside (and outside) mise, almost exclusively with embedded shell/python scripts. Have used mise tasks a little, but didn't meaningfully add enough for me

Or do you mean justfiles with shebangs?

Either way, curious what problem you hit (and may be able to unblock ya)

replies(1): >>44380917 #
8. elbear ◴[] No.44380917{3}[source]
From what I remember, the task consisted of several lines of shell and just would just choke at some point. I think it was because I used a new line to visually separate code. I'm not sure, I don't remember exactly as it was some time ago and I just gave up.
replies(1): >>44389079 #
9. pentaphobe ◴[] No.44389079{4}[source]
Ah fair enough, thanks!

possibly patched now but definitely going to try breaking it now before moving any more stuff into it