Is "uv" the FUTURE of Python package management?

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

ความคิดเห็น • 59

  • @Carberra
    @Carberra  10 หลายเดือนก่อน +21

    I've been told it's pronounced "yoo-vee" rather than "uvv". Not gonna lie, I was starting to get worried!

    • @eksortso
      @eksortso 10 หลายเดือนก่อน

      No worries there. Personally, when a command name ends with v, I'll say the start then say "vee," because I don't want to suppress the v sound when talking. Even if that makes venv sound like something sinister.

    • @JustLikeBuildingThings
      @JustLikeBuildingThings 10 หลายเดือนก่อน +2

      Alright uvv.

    • @coced
      @coced 10 หลายเดือนก่อน

      silly name ? silly prononciation !
      WE ARE THE PEOPLE

    • @wadecurry938
      @wadecurry938 3 หลายเดือนก่อน

      I find it mildly amusing when people refer to the famous, fabulous editor vi as "vie" . You can tell they are newbs... well... you can tell they're not old like me, anyway ;-)
      I wonder if the devs were ever tempted, when uv was in beta, to call it uvb?

  • @TawaraboshiGenba
    @TawaraboshiGenba 10 หลายเดือนก่อน +33

    1. We have 8 different package managers for Python
    2. uv is here to supersede all of them
    3. We now have 9 package managers for Python

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      8?! I've only heard of 5 -- pip, pipx, pipenv, Poetry, and PDM (if we exclude uv) -- what are the others? (Not saying you're wrong, just curious.)

    • @legion_prex3650
      @legion_prex3650 10 หลายเดือนก่อน +1

      @@Carberra pip-tools is another one i like. oldie but goldie

    • @domenechj
      @domenechj 10 หลายเดือนก่อน +1

      @@Carberra What do you think about Pixi?

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      Oh yeah pip-tools of course. There's also pip-compile isn't there? I can't help but feel these three should've all just been part of pip.

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      Can't say I've ever heard of Pixi!

  • @chyldstudios
    @chyldstudios 10 หลายเดือนก่อน +19

    i believe it is pronounced "U.V." not "of".

  • @Bwanshoom
    @Bwanshoom 10 หลายเดือนก่อน +9

    The Windows commands for installing are PowerShell: irm is an alias of the Invoke-RestMethod cmdlet and iex is an alias of Invoke-Expression

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      Aaah okay. Cheers for clearing that up!

  • @poorlymadeedits5911
    @poorlymadeedits5911 10 หลายเดือนก่อน +15

    I would love to have this replace pip. It's so much faster and has cleaner outputs

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +4

      Honestly the TUX just makes it for me.

  • @therealslimaddy
    @therealslimaddy 10 หลายเดือนก่อน +8

    I tried it. The dependency resolution/management is just out of this world.
    It’s still incomplete though, I’m looking forward towards this.

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +1

      Yeah, will be interesting to see where it ends up!

  • @gavintillman1884
    @gavintillman1884 3 หลายเดือนก่อน +1

    I think the pronunciation is UV - as in the abbreviation for ulravioloet light - rather than literally "uv"

  • @prontomatias3081
    @prontomatias3081 3 หลายเดือนก่อน

    Sonatype released that the number of supply chain attacks at package level has increased substantially, how does UV or other tools can help to prevent this? If anyone can shed some light

  • @scaffus
    @scaffus 10 หลายเดือนก่อน +3

    That's impressive

  • @davidmurphy563
    @davidmurphy563 10 หลายเดือนก่อน +8

    Hmm... I mean, is really fixing a burning real world dev problem? You might pip install one of two things a week. I suppose there are probably people who spend all day, every day pip installing like crazy and the time it takes is the bane of their existance; people that set up servers probably. That's not most people but okay. I guess a requirements.txt on a big project can take a fair bit of time. Faster is better. Prettier console text? Ok sure. I just want to know if it worked or not and see which dependency failed and pip does that but okay, prettier is better.
    Meh, an improvement is an improvement I guess. I'm struggling to get excited about it. Honestly, I doubt I'll bother with it. I guess if it becomes the default then I will like everyone else.

    • @juan.o.p.
      @juan.o.p. 10 หลายเดือนก่อน +9

      Faster installs make CI/CD pipelines faster (and cheaper)

    • @davidmurphy563
      @davidmurphy563 10 หลายเดือนก่อน

      @@juan.o.p. I've always suspected that the term "CI/CD pipeline" might be the most meaningless in all of IT - other than meaning "doing IT" - but I'm probably just getting cynical in my old age! :)

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +4

      IMO innovation can't hurt. I've always thought pip was a bit meh, but I used it cos there's been nothing better. If uv comes along and changes that, all the better I say!

    • @davidmurphy563
      @davidmurphy563 10 หลายเดือนก่อน

      @@Carberra Absolutely, you're right at the end of the day. Better is better. Things should move forward. I suspect the reality for most people won't amount to much impact but still, it's part of the march forward. Onwards and upwards and all that.

    • @truthmatters7573
      @truthmatters7573 10 หลายเดือนก่อน +5

      Don't forget that being faster than pip is just the first step along the way, the end goal is to create a cargo like experience for Python. I can't wait to have polished and performant tooling for the python ecosystem. Poetry has already been a breath of fresh air, but it's not quite on par with a tool like cargo. Tooling around packaging and dependency management has always been the Achilles' heel of Python. If uv can fix that once and for all by becoming the de facto standard and provide an amazing developer experience out of the box, then that's a huge win.

  • @akrishnadevotee
    @akrishnadevotee 10 หลายเดือนก่อน +3

    Coming from node.js side, I find pip to be very half-baked and not very organized. I'd love to use a better package manager.

  • @tonyc2227
    @tonyc2227 10 หลายเดือนก่อน

    is py an alias to python?

    • @Carberra
      @Carberra  10 หลายเดือนก่อน

      When installed via Pyenv at least, it's its own executable. I think it's very common to have it now, but I'm not sure it's everywhere. But yeah it's the same thing as the more verbose options.

    • @loomkkoom
      @loomkkoom 10 หลายเดือนก่อน +2

      Py ships as the python command when installed on windows, also enabling you to specify the version

  • @truthmatters7573
    @truthmatters7573 10 หลายเดือนก่อน +4

    I think uv is meant to be pronounced U V, short for ultraviolet

    • @Carberra
      @Carberra  10 หลายเดือนก่อน

      I was thinking that but then wouldn't it stylised in all-caps?

    • @Bwanshoom
      @Bwanshoom 10 หลายเดือนก่อน +4

      That's correct. Charlie Marsh (author of uv & ruff) posted that it stands for either Ultraviolet or Universal "depending on which one you like better".

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +1

      Okay, I can live with that at least. Still odd it's stylised all lower-case, but happier with "yoo-vee" than "uvv" lmao.

    • @truthmatters7573
      @truthmatters7573 10 หลายเดือนก่อน +2

      @@Carberra the all caps stylization would be confusing because terminal is case sensitive, but you don't wanna be the one command that requires capitalization and confuses the heck out of everyone... therefore to keep the conventionally all lowercase command and its branding consistent it should stick to lowercase even when stylized.

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      At that point just come up with a different name 😅 I get your point though.

  • @RealAPasz
    @RealAPasz 10 หลายเดือนก่อน

    In the modelling space we just spell it out.

  • @d3stinYwOw
    @d3stinYwOw 10 หลายเดือนก่อน +2

    Will they pay a some dime to creators of Pip, or do same thing which ruff did with projects like flake8? ;)

  • @DroolRockworm
    @DroolRockworm 10 หลายเดือนก่อน +3

    How many fucking python package management systems are there at this point? Ridiculous

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +1

      I've been told this is the 9th, but there could be more out there we don't know about!

  • @DezXereanas
    @DezXereanas 10 หลายเดือนก่อน +1

    Tbf ruff is also a garbage name for a linter/formatter. Did they fire the guy who came up with Astral?

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      He's currently head honcho, though I'll agree he has a knack of choosing some pretty bad names for tools lmao.

    • @truthmatters7573
      @truthmatters7573 10 หลายเดือนก่อน +3

      well, at least it's memorable and unique, so that's worth something :P
      I'd like to think they call it ruff because it will rough up your codebase and beat it into shape, but maybe i'm reading too much into it XD

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +4

      I like to think he asked his dog to name it 😆

  • @Blaxter
    @Blaxter 10 หลายเดือนก่อน

    It's promising but nobody uses plain pip (either poetry or pipenv), uv is not a real replacement right now. Also it has the worst possible name ever, I'd rather stick with poetry

    • @Carberra
      @Carberra  10 หลายเดือนก่อน +2

      What dyou mean nobody uses pip lmao, I barely know anyone that _doesn't_. Agree with you regarding the name though.

    • @Blaxter
      @Blaxter 10 หลายเดือนก่อน

      everyone uses it underneath but you need a real package manager on top of it, i.e. pipenv, poetry, rye (or even conda). If you are using only pip that's pretty bad imho. All of them use pip behind the scenes though, rye has an experimental option right now to use uv instead of pip, will uv evolve to be a replacement for these? I hope so @@Carberra