TL;DR: uv is an extremely fast Python package manager, written in Rust.

2 points

This is great!

@burntsushi@programming.dev, do you know is Astral is working with prefix.dev and their Pixi project? They seem to now have overlapping concerns.

permalink
report
reply
1 point

I don’t think they have anything to do with each other, it looks like prefix.dev uses conda packages.

permalink
report
parent
reply
2 points

Conda is their primary focus, but they support well more than conda packages.

permalink
report
parent
reply
4 points

Isn’t uv being used as a package manager/resolver in rye? I’m using rye for my new projects and it’s nice because ruff and pytest are being unified in it too.

permalink
report
reply
3 points
*

Rye’s developer on their plans for Rye in the context of uv’s latest release:

https://lucumr.pocoo.org/2024/8/21/harvest-season/

permalink
report
parent
reply
5 points

Yeah it is, eventually they want UV to have feature parity with rye and rye will basically just be a pointer to UV

permalink
report
parent
reply
9 points

uv is now capable of installing and managing Python itself, making it entirely self-bootstrapping:

Looking forward to this. One of the blind spots of poetry was to ignore the issue of managing python versions themselves. I’m happy to see they’re covering so many aspects of dependency management and replicability.

permalink
report
reply
10 points

Having used it for work, I really don’t understand the appeal, especially when compared to tools like Poetry. Uv persists in the dependency on requirements.txt, doesn’t streamline the publishing process, and contrary to the claims, it’s not a drop-in replacement for pip, as the command line API is different.

It’s really fast, which is nice if you’re working on a nightmare codebase with 3000 dependencies, but most of us aren’t, and Poetry is pretty damned fast.

If uv offered some of what Poetry does for me, if at the very least we could finally do away with requirements.txt and adopt something more useable – baked into pyproject.toml of course – then I’d be sold. But this is just faster pip.

permalink
report
reply
2 points

Their vision is to evolve it into a “Cargo for Python”, so it’s coming.

permalink
report
parent
reply
5 points

It’s written in Rust.

All jokes about the Rust Evangelism Strike Force aside, various parts of the industry are finally starting to think that “If it’s written in Rust, we have less to worry about with respect to that thing, so we won’t torture the devs and force them to sneak it in the side door anyway.”

It’s a thing that I’ve been seeing at work for the last few years.

permalink
report
parent
reply
5 points

uv 0.3 introduces a cross platform lock file: https://docs.astral.sh/uv/concepts/projects/#lockfile

More precise details on the compatibility of uv pip with pip are documented here: https://docs.astral.sh/uv/pip/compatibility/

permalink
report
parent
reply
8 points

Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.

permalink
report
parent
reply
1 point

Now if they could just help defuckulate the Pypi search problem.

permalink
report
parent
reply
4 points
*

Uv is currently only a pip replacement as a dependency resolver (and downloader), it was actually adopted by astral from a different dev afaik

permalink
report
parent
reply
4 points

Very impressive results. I think I’ll give the tool a try next time we’re working on a small project. I’m dissatisfied with the existing packaging solutions.

permalink
report
reply

Python

!python@programming.dev

Create post

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 673

    Monthly active users

  • 170

    Posts

  • 708

    Comments