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

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    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.

  • __init__@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Obligatory “there are now 15 competing standards”

    For real though, this looks interesting. I am a long time poetry user, I’ve been mostly happy with it but I do think it could stand to be a little faster. I’ll have to try this out sometime.

  • ahal@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    This is incredible. Truly hats off to the folks at Astral. Can’t wait to try all this out and replace all our old bespoke tooling.

  • hades@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Is that a real problem? I’ve never considered that a python package manager should be or could be faster.

    To be fair, I don’t use python professionally.

    • chrash0@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      definitely not the real reason for a project like this to exist. Python package management can be nightmarish at times depending on what you’re doing. between barebones requirements.txt, Poetry, and the different condas there’s a ton of fragmentation, and none of them do everything you’d want in an ideal way. above and beyond speed, i think uv is another attempt at it. but it could just be another classic xkcd moment where now there’s just another standard to deal with

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        uv is a drop-in replacement for pip. There’s no extra standard. It’s pareto better. Honestly the Python community would do the world a favour if the deprecated pip and adopted uv as the official tool, but you can guess how likely that is…

  • Daniel Quinn@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    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.

    • The Doctor@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      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.