Latest / Talk Python To Me / #453: uv - The Next Evolution in Python Packages?
Transcript
- 0:00Have you ever waited around for pip to do its thing while installing packages or syncing virtual environments,
- 0:05or even through some higher-level tools such as pip-tools?
- 0:09Then you'll be very excited to hear about what just got announced from Astral,
- 0:14a PIP-compatible CLI tool called uv.
- 0:17It's like pip, but 100 times faster.
- 0:19Charlie Marsh from Rough Fame and the founder of Astral is here to dive in.
- 0:24Let's go.
- 0:25This is Talk Python To Me, episode 453, recorded March 12, 2024.
- 0:31Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:49This is your host, Michael Kennedy.
- 0:51Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython, both on fosstodon.org.
- 0:58Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:03We've started streaming most of our episodes live on YouTube.
- 1:07Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows and be part of that episode.
- 1:15This episode is sponsored by Neo4j.
- 1:18It's time to stop asking relational databases to do more than they were made for and simplify complex data models with graphs.
- 1:26Check out the sample FastAPI project and see what Neo4j, a native graph database, can do for you.
- 1:33Find out more at talkpython.fm/Neo4j.
- 1:38And it's also brought to you by us over at Talk Python Training.
- 1:41Did you know that we have over 250 hours of Python courses?
- 1:46Yeah, that's right.
- 1:47Check them out at talkpython.fm/courses.
- 1:50Hey, y'all.
- 1:52I have a quick announcement before we jump into the conversation with Charlie.
- 1:55And sticking with the theme of the episode, I'll keep it quick.
- 1:57Over at Talk Python, we just released a new free course.
- 2:01It's all about working with audio in Python, converting it to text, applying all sorts of AI awesome sauce, and more.
- 2:08We end up with a dynamic web app that lets you have a ChatGPT style Q&A with a podcast, guests, and hosts starting from just the RSS feed.
- 2:18It's really mind-blowing.
- 2:20As a sweet bonus, the course shows you a bunch of hands-on examples of FastAPI, HTMX, Beanie, MongoDB, and more.
- 2:27I hope you love it.
- 2:28Give it a look as it is 100% free, no strings attached.
- 2:32The link is on the episode page, in your podcast player show notes, and at talkpython.fm/courses.
- 2:38Hey, Charlie.
- 2:40Hey.
- 2:41Welcome.
- 2:42Yeah, thanks so much for having me back on the show.
- 2:44I really appreciate it.
- 2:45Yes, it's really great to have you back on the show.
- 2:48You and your team are doing awesome work these days and making a big dent in Python.
- 2:53Thank you.
- 2:54Thank you.
- 2:54Hopefully a good dent, I guess.
- 2:56Yeah, I guess you could make a good dent or a bad dent.
- 2:59But no, I meant that in a good way.
- 3:01Definitely in a good way.
- 3:02I appreciate it.
- 3:03Yeah.
- 3:04Yeah, I think excellent work.
- 3:05It's really, it's kind of surprising how some of these tools just come in and just catch fire in a way.
- 3:12I don't know how you felt about it, but it seemed more than I would have expected.
- 3:16I mean, I did not expect your things to be popular, but they became really popular really quickly.
- 3:21Yeah.
- 3:23Yeah.
- 3:23I mean, it was different, you know, with Ruff and with uv, this sort of context around it has been pretty different.
- 3:30Because with Ruff, like when I started working on Ruff, no one knew who I was or had any reason to care about what I was doing.
- 3:37And the project just grew, you know, grew over time.
- 3:41And then I knew that when we were working on uv, like there would just be a lot more of an expectation around like anything we build.
- 3:47Yeah.
- 3:47The spotlight was already shining, right?
- 3:49A little bit.
- 3:50Yeah.
- 3:50Yeah.
- 3:50And that's awesome because it means our stuff gets traction.
- 3:53Also, it comes with a lot of responsibility.
- 3:56It means anything we release, we're, you know, we're kind of committed to maintaining.
- 3:59So, like, yeah.
- 4:01Yeah.
- 4:01Yeah.
- 4:01It's been very interesting, like this kind of release cadence versus what happened with Ruff.
- 4:07Well, you have more people behind the scenes helping you out, right?
- 4:10I do.
- 4:11Yeah.
- 4:11Thankfully.
- 4:12Yeah.
- 4:12Tell us, you know, maybe that's a good place to just kick off our conversation is, you know, we're talking a bit about Ruff for everyone.
- 4:20And Ruff was the thing that really launched all of this.
- 4:24But you started a company, Astral.
- 4:27Yep.
- 4:27Got some funding behind it.
- 4:28Yep.
- 4:29Building awesome tools.
- 4:30Yeah.
- 4:30Just give people the broad view of your world these days.
- 4:32Yeah, totally.
- 4:33So, yeah, I started, this all started when I released Ruff probably like a year and a half ago, maybe at this point.
- 4:42And at that point, it was really not just a side project for me, but very much an exploratory project.
- 4:49Like I was kind of curious about building faster Python tooling, really, and curious about getting better at Rust and all this stuff.
- 4:58And Ruff, when I released it, it's, you know, it was a lint or it is a linter, but it kind of brings a lot of different tools together.
- 5:07So if you're familiar with like Flategate or Pylent, but also Black, Ruff is designed to kind of bundle all those tools together.
- 5:16So it can detect problems with your code.
- 5:19It can fix them automatically.
- 5:20It can reformat your code.
- 5:23So often when we see people like adopting Ruff, they're replacing like 20 or 30 tools with Ruff.
- 5:29And, you know, it has, there's a bunch of nice things about it, but ultimately it's very, very fast and hopefully a lot simpler for users.
- 5:36Yeah.
- 5:38But, go ahead.
- 5:39I was going to say, it's really nice that it's just one tool that brings that all together.
- 5:44You know, it's not a patchwork.
- 5:45Well, here's how we use ISORT and here's how we use Flategate and here's how we use this and here's how we use that, you know?
- 5:50Right.
- 5:51I think ISORT's a really good example because instead of having an ISORT's a great tool, but instead of having a separate tool to do your import sorting, Ruff Frames import sorting is just a lint rule.
- 6:00And so you don't have to learn a bunch of different tools and figure out how to sort of merge them together.
- 6:06And, you know, Ruff, again, when I released it, it was just a side project and it sort of took off.
- 6:14You know, there were, it was originally, you know, I released it in part because I had this thesis that like Python tooling could be much faster and Ruff was meant to evidence that.
- 6:25It was meant to be an example of what I saw as like this potential to build really different Python tooling.
- 6:30And took off a couple of big projects like FastAPI and such were kind of early adopters and it just grew and grew and grew from there.
- 6:41And I started a company, Astral, you know, shortly after based on a lot of these ideas.
- 6:47So again, Ruff in this context was meant to be, you know, the goal wasn't necessarily to start a company just based around Ruff.
- 6:54The goal was to start a company based around, you know, the ideas behind Ruff, which is, can we build really different Python tooling by, well, it's all written in Rust.
- 7:07It's sort of an implementation detail, right?
- 7:09But ultimately what we're trying to do is build like really high performance Python tooling, but also tooling that works together really well and simplifies things.
- 7:16So tackle, it's not just about performance.
- 7:19It's also about tackling a lot of, I guess, what I see as the complexity in Python tooling today.
- 7:24And really trying to, I guess, challenge certain status quos and respect others, but challenge some status quos in what it feels like to work with and use Python.
- 7:36And so, you know, our focus as a company, you know, right now we're very, very focused on our open source roadmap and our open source tooling.
- 7:47So that's Ruff now, uv, which we'll talk about in a bit.
- 7:52And these are, you know, MIT licensed, you know, fully open source tools that we build.
- 7:58And ultimately our goal is to build and sell paid services that integrate really well with the tooling and are kind of like the natural next thing you need when you're building with Python.
- 8:08So, you know, we'll never charge money for like the tools themselves.
- 8:12Those remain free, permissively licensed.
- 8:14But our goal is to kind of build, you know, imagine you're building with Python, you need to deploy a web server.
- 8:19There's a lot of things that you need naturally to do that.
- 8:22So for people who are already using our tools, what are the natural next things they need and how can we build really good services on top of the tooling that just integrate with it really well?
- 8:30So that's kind of the premise of the company.
- 8:32There's like really two focuses to the roadmap.
- 8:34It's like the open source and the commercial.
- 8:37And our goal is to have an incentive structure where we're just continuously aligned to like invest a ton in the open source and grow it as much as possible in a really natural way.
- 8:46So you're not going to do like per line fix pricing.
- 8:49You get a million, million line fixes a month free and then no, I think it's an awesome model.
- 8:55And, you know, open source 10 years ago, it really looked like it was already super vibrant and super making huge dents in the space.
- 9:07Right.
- 9:07Really a lot of people adopting it.
- 9:10But I think there was kind of a funding side that was a little bit missing.
- 9:14I still remember like, you know, buy me a coffee type of links, like send me 10 bucks.
- 9:18Yeah.
- 9:19If you like this.
- 9:20And that's just it's not a job.
- 9:22That's hardly a hobby type of thing to get stuff done.
- 9:26You can't have a team of people focused on it.
- 9:28And it had traditionally really been around kind of a beneficial.
- 9:33I need to find a big tech company that's willing to give me sufficient amount of time to work on this project.
- 9:39To sort of fund its existence.
- 9:42Or maybe I'm a consultant and I'm I create Flask, but I consult on Flask, that type of thing.
- 9:47Right.
- 9:47And I think it's just super positive to see more direct ways people are making open source successful.
- 9:54You know, I think.
- 9:55Yeah, I appreciate that.
- 9:56I wish.
- 9:56Yeah, I think.
- 9:57You know, I wish I sort of wish that there were more more good examples of that working.
- 10:02There are some for sure.
- 10:05You know, for me, it was pretty clear.
- 10:06Like it was immediately clear to me.
- 10:08I needed to work on a rough full time if I wanted the project to succeed.
- 10:11And that's kind of a microcosm of the bigger the bigger challenge, which is like we wanted to build like we really wanted to like professionalize the building of this.
- 10:20You know, the work on this project and bring in more people to help build it.
- 10:24And so, you know, ultimately, it's not obviously it's not it's not charity.
- 10:28It is venture funding.
- 10:29And ultimately, we need to build a business, you know, around the tooling to make it, you know, to make it sustainable.
- 10:38But, you know, again, for me, I want the incentive structure to be such that like the open source is obviously free, open source, extremely permissively licensed and truly open source.
- 10:50Like we have tons and tons of contributors.
- 10:52We have a huge community around it.
- 10:55And I'm just glad that we've been able to, you know, bring in more people to kind of supercharge the development of it all.
- 11:02So, yeah.
- 11:02So I guess you talked on you touched on this before, but we're now eight people.
- 11:07So we've grown, you know, it was it was I guess a year ago it was just me in March.
- 11:14So over the past year, our first two team members joined actually in March of last year.
- 11:20So almost exactly a year.
- 11:21And, yeah, we're completely distributed.
- 11:25So we're, you know, we have people in U.S. Pacific time all the way to Bangalore.
- 11:30So we're just, you know, around the like open source.
- 11:35We're kind of all over the world and and just building, you know, building all this stuff out in the open.
- 11:41It's such a good fit to be a distributed company as an open source with open source roots, because the tools of open source in some degree for software in general, but especially for open source is asynchronous.
- 11:54Yeah.
- 11:55Semi-connected, you know, kind of the zen of get, but for the way you work.
- 11:59Right.
- 12:00And it makes it super easy to hire just the most engaged people, regardless.
- 12:04Yeah, exactly.
- 12:04Yeah.
- 12:05The people who are willing to commute to my office in the office park.
- 12:08Yeah.
- 12:09It was I would be pretty surprised if a single person I've hired would have been willing to move to New York, which is around based.
- 12:19So from that perspective, it was a no brainer, which is and actually, you know, multiple people we've hired.
- 12:25Our relationship with them started on the repo.
- 12:28Yeah.
- 12:29InRuff itself.
- 12:31And then almost everyone we've hired, we discovered through open source in some way or had some relationship through open source in some way.
- 12:40Yeah.
- 12:41So, yeah, it's been a really it's very much in it's also very much in the DNA of the company, which is, you know, we actually also intentionally try to hire people who have been maintainers.
- 12:51Right.
- 12:51And have a lot of experience with that, too.
- 12:53We view that as a really important skill.
- 12:55Yeah, that's excellent.
- 12:56So we talked about Ruff.
- 12:59One thing I do want to give a bit of a shout out to is I don't remember.
- 13:03I think I found this on Mastodon.
- 13:05I can't remember where somebody talked about it.
- 13:07But one of the things that Ruff does, one, it changes code, which is awesome.
- 13:12I love your Ruff format story.
- 13:14But it also just tells you, hey, this could be better.
- 13:16You're violating PEP 8.
- 13:17You're violating this other convention or even a security thing.
- 13:21Right.
- 13:21But the why is the why of that, I think, requires a little bit of experience.
- 13:26Like, why should I use this kind of loop or that kind of comprehension over another?
- 13:32Right.
- 13:33It's people told me that who are much better have been doing this longer.
- 13:37I shouldn't do it.
- 13:38Why?
- 13:38When you have when you have 700 rules, there's a lot of why.
- 13:42And so you guys came up with this thing at docs.astral.sh slash rules, put in links that literally for each one of these has like a little example.
- 13:52And what is good and what is bad and when you should use it and so on.
- 13:57You want to tell people about this a bit?
- 13:59I think it's a mess.
- 13:59Yeah, totally.
- 14:00So we didn't have, I mean, we obviously didn't have this when we started the project.
- 14:04And then we accumulated a lot of rules.
- 14:08Like, when we decided to add this, I think we already had like hundreds of rules.
- 14:12And the motivation for the format really comes from Clippy, which is the linter used in Rust.
- 14:20Okay.
- 14:21And they have really, Rust in general has a really good documentation culture.
- 14:24And Clippy has this nice format, very similar to ours.
- 14:27We've made some adjustments, but it's pretty similar around how you document lint rules, like what's the motivation and giving examples.
- 14:34And so we were like, all right, let's, we want to do this.
- 14:37And we just over a very long period of time and a lot of contributors contributed on this documentation, but it took like six months or something probably to document it.
- 14:46And now, yeah, now we can, now we require it for all rules.
- 14:49So it's much easier to add going forward, but it was a huge effort to add this.
- 14:53And, you know, some of the explanations too are very extensive and detailed with lots of references.
- 14:59Yeah.
- 15:01Yeah.
- 15:01Yeah.
- 15:02I pulled the one up for iSort, unsorted imports, which is error i001.
- 15:07And it also talks about whether it can automatically fix it, what this does, why is it bad?
- 15:13So it says things like consistency is good, use a common convention for imports to make your code more readable and idiomatic or Pythonic.
- 15:20Yep.
- 15:20And it just gives an example of bad, good.
- 15:22Right, right.
- 15:24I think that's nice.
- 15:25Yeah.
- 15:25And, you know, we've started to put more stuff in here over time too.
- 15:28Like whether, like in some cases we let users apply automatic fixes that aren't completely safe, like by opting in.
- 15:36Like it might change the meaning of your code and you kind of need to be careful.
- 15:39And so over time we've started to document that here too, like rules that have unsafe fixes.
- 15:43Why?
- 15:44Like in what case might it break your code and what should you look out for?
- 15:47So, yeah, we want it to be a tool with really good, like we're kind of inspired by Rust in this way.
- 15:55Because Rust has a really good documentation culture and also the Rust like compiler itself has really good error messages.
- 16:02It's sort of famous for that, like when your code doesn't work, it's really good at telling you why.
- 16:06It doesn't always get it right, but it has famously good error messages.
- 16:09And that's something that we try and channel too, to like when we make changes to configuration, like just putting extra effort into trying to make like those, those like error messages and those hints helpful.
- 16:19But yeah, it's a lot of work.
- 16:20So I appreciate you.
- 16:21I appreciate that you called it out.
- 16:23I'm sure it looks like a lot of work, but it's one of those things that's, where else are you going to get this knowledge, right?
- 16:29I mean, I know you can go search for one at a time, but in this aggregates is really good.
- 16:34Right, right, right.
- 16:37This portion of Talk Python To Me is brought to you by Neo4j.
- 16:40Do you know Neo4j?
- 16:42Neo4j is a native graph database.
- 16:45And if the slowest part of your data access patterns involves computing relationships,
- 16:50why not use a database that stores those relationships directly in the database, unlike your typical relational one?
- 16:57A graph database lets you model the data the way it looks in the real world, instead of forcing it into rows and columns.
- 17:04It's time to stop asking a relational database to do more than they were made for and simplify complex data models with graphs.
- 17:11If you haven't used a graph database before, you might be wondering about common use cases.
- 17:16You know, what's it for?
- 17:17Here are just a few.
- 17:19Detecting fraud.
- 17:20Enhancing AI.
- 17:21Managing supply chains.
- 17:23Gaining a 360-degree view of your data.
- 17:26And anywhere else you have highly connected data.
- 17:29To use Neo4j from Python, it's a simple pip install.
- 17:34Neo4j.
- 17:35And to help you get started, their docs include a sample web app demonstrating how to use it both from Flask and FastAPI.
- 17:42Find it in their docs or search GitHub for Neo4j Movies Application Quick Start.
- 17:47Developers are solving some of the world's biggest problems with graphs.
- 17:51Now it's your turn.
- 17:52Visit talkpython.fm/Neo4j to get started.
- 17:57That's talkpython.fm/Neo4j.
- 18:00Thank you to Neo4j for supporting Talk Python To Me.
- 18:06So Ruff will fix a lot of these things for you.
- 18:09And one of the things that I like to do is I just have it integrated into my editor these days.
- 18:14So both with PyCharm and with VS Code, if I just say format this document, that's a Ruff format.
- 18:21Nice.
- 18:21Yeah, yeah.
- 18:23So we have a VS Code extension.
- 18:25And it supports formatting, autofixing, all that kind of stuff.
- 18:30The PyCharm one's a third-party one, right?
- 18:35Someone else decided to make that.
- 18:36Yeah, the JetBrains one is by Huda.
- 18:39And it's, yeah, that's like a community extension.
- 18:45We're considering doing our own at some point because there's a lot of demand for, obviously, we have a lot of users who use the JetBrains stuff.
- 18:53I mean, I use it.
- 18:54So we may do our own at some point, but there's a community-maintained one right now.
- 18:58And that's based on, we have sort of like a language server.
- 19:02So there's kind of like an underlying piece of technology that wraps rough, that powers all of these editor integrations.
- 19:08So you can also use that from like NeoVim or Sublime Text or Emacs.
- 19:13All of those editors support the LSP.
- 19:15And so you can actually, it's the same thing that powers the VS Code extension.
- 19:20Just that's wrapped in some VS Code specific stuff.
- 19:23But it's the same piece of technology.
- 19:26We're actually rewriting that right now to make it sort of like more natively integrated into Ruff, which will let us do some cool things.
- 19:34So it should get like actually significantly better, I think, over the course of this year because it's becoming more and more of a priority for us.
- 19:41Yeah, cool.
- 19:42The whole LSP thing is pretty interesting.
- 19:44I think it's really opened up a lot of editors being better.
- 19:47Yeah, it has.
- 19:49And it made it, like from our perspective, it made it way easier to build like editor integrations.
- 19:55Because we just built an LSP and then it like works for like everyone, almost.
- 20:01Yeah.
- 20:04Like the JetBrains stuff, it does support the LSP, but I think only in the paid version, not in the community version.
- 20:11So like there's some limitations around it.
- 20:13But in general, like if you support the LSP, like it's actually very easy to build editor integrations that work with everyone, which is like super, super useful.
- 20:20Yeah.
- 20:21Instead of rebuilding your own integration for every single thing, which is not fun.
- 20:26Yeah, it's a lot.
- 20:27All right.
- 20:27Well, let's talk about the main project here.
- 20:31The main reason for being here today is uv.
- 20:35Tell people what uv is.
- 20:37This is your next big project, next big tool.
- 20:40Yes.
- 20:40Yeah.
- 20:41UV, we released uv a little under a month ago.
- 20:47And this is something that I've wanted to do, like basically since we started the company, I wanted to start, I thought there was an opportunity to build some really interesting tooling in Python packaging.
- 21:00And uv is kind of the first milestone in that.
- 21:03So uv, in its current form, it's designed as a sort of drop-in alternative to pip, pip-tools, like if you use pip compile, pip sync, and virtualenv.
- 21:17So it takes those three tools and tries to bundle them into one.
- 21:22And so it can do things like, you know, given a set of input requirements, generate a requirements.txt file similar to what you'd get from pip compile.
- 21:32It can, you know, you can do uv pip install-r requirements.txt, uv pip install black.
- 21:40So it's really intended right now to be sort of, you know, it won't always, we don't support absolutely 100% of what pip does, but it's, we try to be pretty close.
- 21:53And so in many cases, the intention is that people can basically drop in uv in their project that uses pip today and get, in many cases, like very, very significant performance improvements.
- 22:07So similar to Ruff, like some of the goals we had for this project were one, it should be very, very fast.
- 22:14And uv, it's really fast.
- 22:18In particular, there's like a benchmarks.md in here, actually, if you want to click on that.
- 22:25Now scroll up.
- 22:27Does that do it?
- 22:28Oh yeah, that works too, I guess.
- 22:29That was smart of me.
- 22:31Yeah, so it's really, really fast, especially if you've already have, if you're, if you have things cached, which is pretty common.
- 22:41So like often on your machine, when you're doing like pip install-r, whatever, a lot of those packages, you've probably installed them at least like once before on your machine.
- 22:52Or maybe you deleted your virtual environment and you're recreating it with the exact same dependencies or something like that.
- 22:57UV is like very, very well optimized for that case.
- 23:02So if you have a package that you're installing multiple times, like the installation is effectively free.
- 23:08And it's also a lot more like disk space efficient.
- 23:12We use kind of like, we store all of them in one place and kind of copy them into your virtual environment so that you don't have like many, many different copies of the package too.
- 23:20So this was all kind of taking techniques and inspiration from like other ecosystems and other package managers and kind of molding them to fit Python's model for how packaging and dependencies work and all the specifications.
- 23:37And so again, the end result is like you, you know, installing into a virtual environment, a package that you've already installed before is basically free.
- 23:44And yeah, a lot of these things are just like way, way, way faster.
- 23:49Similar to rough, like dramatically faster.
- 23:52Yeah.
- 23:53Yeah.
- 23:53And similar to radically.
- 23:54And I think, you know, it's worth pointing out that like on one hand, we all have an extra 10 seconds, right?
- 24:01Or of course, whatever.
- 24:04But in the aggregate, all of these things are just like little paper cuts over your day, you know?
- 24:09And so, yeah, sure.
- 24:11I can format the code and I could use something nice and sure if it takes 20 seconds.
- 24:15Okay.
- 24:15But then you stop running it because it's kind of a hassle and you're just, you're in your flow.
- 24:19And this is kind of the same way.
- 24:21It's like, oh, I want to maybe see if there's a new, some new packages for this project as I'm sitting down to work on it.
- 24:28Like, okay, well, wait for a pip compile to run and you wait and you wait and then like, okay, now it's done the onto the development version and you wait and you wait.
- 24:37And like, you know, it's just some of these things that are instant.
- 24:40You just ask the question more and it just doesn't break your train of thought, you know?
- 24:45Totally.
- 24:46I think there's like maybe like three different things that come to mind here when we think about performance.
- 24:50Because like, yeah, okay.
- 24:52In this case, like it may not seem to change your life if you're going from one second to, you know, 50 milliseconds.
- 24:58But I think three things come to mind.
- 25:00So one, like for companies and large projects, this can actually be like a really big difference.
- 25:07And so if you're at a company and you have like a big monorepo with like a bunch of different sub projects, they all have requirements files and you want to bump a dependency.
- 25:15That can be like, at that point you're talking like 15 plus minutes for a command.
- 25:22And so like for the larger the project gets, obviously the more performance matters and the more it helps out.
- 25:28And we're trying to build tooling that can basically scale.
- 25:30I don't know about like to arbitrarily large projects, but like two large projects and useful for companies too.
- 25:35You know, the other thing I'd say is I think there's something that happens like when tools, when you make something like way faster, it just changes a lot of the ergonomics around what it's like to do things.
- 25:47And so, you know, in this case, like, okay, so installing into a virtual environment, a package that you've already installed before is free now.
- 25:57And so how does that change things?
- 25:59It's nearly instant.
- 26:00So how does that change things?
- 26:01Right.
- 26:01So that means like if you mess up your virtual environment and have to delete it and recreate it, it doesn't, it doesn't cost you anything.
- 26:07It's totally, it's totally ephemeral.
- 26:09You can throw it away and recreate it at any time.
- 26:11And like, that's just like a different, like, it sounds small, but that's kind of like a different relationship to a virtual environments than before where it's like, okay, I created the virtual environment now.
- 26:18Oh no, my virtual environment.
- 26:19So I messed up.
- 26:20I got to recreate it.
- 26:21Like we want to just change a lot of the dynamics around some of those like abstractions.
- 26:25And then the other thing is this performance budget or this, if you think of performance, like a budget, this buys us a lot of room.
- 26:33And so like the fact that we are so fast on some of these things means that we can do things that otherwise might be like prohibitively slow.
- 26:41And this is more sort of forward looking and for the future.
- 26:44Like one thing that we're thinking about a lot right now is this idea of like resolving Python dependencies for many platforms because it's a little bit complicated, but you know, pip compile and pip and uv, they're really designed to only work on like the current Python platform and the current Python that you're using.
- 27:01So if you're on like macOS and you run pip compile, it will give you dependencies that are correct for like macOS and your current Python version, but they might be wrong on Windows because Python and Python, you can have dependencies that vary based on things like the current Python version or the current operating system.
- 27:23And so one example would be uvloop, right?
- 27:26For people trying to speed up.
- 27:27I think it doesn't work on Windows.
- 27:28It doesn't work at all on Windows.
- 27:30That's right.
- 27:31And so, yeah.
- 27:31So that's a very common one.
- 27:32Yeah.
- 27:34And it is, I think, very common that this is a very common thing, like on like lots of really, really popular packages have these kinds of markers, these what are called markers, which basically makes the dependencies conditional based on the current Python.
- 27:49And so, you know, like again, like in pip and pip-tools, uv right now just locks for the current Python poetry and I think PDM, but poetry for sure does this very interesting thing where they actually try to lock.
- 28:05They try to resolve for like all possible platforms.
- 28:09And that's something, it's really convenient because it means that like you kind of do one lock and then any user anywhere can like use that and it works.
- 28:17And it's kind of like guaranteed to be right as opposed to maybe it doesn't work on Windows or whatever else.
- 28:24And so we're pretty interested in like that, adding that behavior and that's going to be like more expensive.
- 28:30And so if we have something that's really fast right now, it kind of like opens up a design space of interesting things we can do to solve that problem while still being, you know, very fast.
- 28:41So that's kind of how I think about performance.
- 28:44Like I think it's, I think people like a little bit underrate how much of an impact it can have on even small interactions.
- 28:50Because once you try something that's much faster, it's often hard to go back to the other thing.
- 28:55But I'm glad you've had that experience at least.
- 28:59Yeah, absolutely.
- 29:00A couple of interesting comments.
- 29:02Danny says, if it takes 10 seconds, I go to triage that issue on GitHub and come back five minutes later, right?
- 29:07Like that's kind of where I was getting at with the flow stuff.
- 29:10It's like, okay, I'm ready.
- 29:11Mind wonders and you're kind of like starting over.
- 29:15Yeah.
- 29:16And then Henry out in the audience also says, hey, Henry.
- 29:19Also, this doing things so quickly, it encourages good environment usage because if doing things the right way is just as easy and as fast as doing it the wrong way, you might as well do it the right way.
- 29:29That's a nice thought.
- 29:30That's a nice thought.
- 29:30Yeah.
- 29:31Yeah.
- 29:31It is.
- 29:32Yeah.
- 29:32I think there are certain things though where we aren't any faster.
- 29:39And I'm interested in thinking about those and what we can do about them.
- 29:44The most obvious one is in Python, sometimes when you install a dependency, you might have to build it from source.
- 29:53And in Python, you often are installing things like NumPy, which includes some native code.
- 30:01And so actually turning that into something that your system can run is kind of expensive.
- 30:05And you typically don't have to think about this with NumPy because they ship what are called wheels, which are kind of like these pre-compiled artifacts.
- 30:16But not all packages ship wheels.
- 30:19You could be on a platform that doesn't have a wheel.
- 30:21For a variety of reasons, you might get the raw NumPy source code and then have to compile it down into a build distribution.
- 30:33And for us, if we get into that situation, it's not going to be any faster because we still have to build the thing from source.
- 30:41Yeah.
- 30:41Just like this.
- 30:42That's the slowest part of the whole process.
- 30:44Yeah.
- 30:44And so there are some cases and some bottlenecks where I'm kind of thinking about how could we do even better there.
- 30:51And there are actually things that are changing in the standards that have made this a little easier.
- 30:55There's this new thing called metadata 2.2.
- 30:58Sounds cool.
- 30:59I know.
- 31:00It basically lets you read the metadata.
- 31:03You thought you liked metadata 2.1.
- 31:05Yeah.
- 31:05Yeah.
- 31:06We're actually on 2.3 now.
- 31:09I'm just kidding.
- 31:11But the point of that is it's a standard that makes it so you don't have to build the thing as often.
- 31:18If you just want to know the metadata of NumPy, for example, you may no longer need to build it.
- 31:24And before you did.
- 31:25And so the standards are moving in a helpful direction here.
- 31:28But I just thought I'd call it out because like the source distribution, there are cases where it won't be faster.
- 31:33And I'm pretty interested in those.
- 31:35But people should know that they also exist.
- 31:37There's also, it's not just time.
- 31:40There's also security issues around that, right?
- 31:42If things are still based on building source from source and then running the setup pie to see what the metadata is.
- 31:50It's both slow and also potentially running arbitrary code just to install a thing, which can make you, I mean, I don't know.
- 31:57Rarely has anything gone wrong with just installing running arbitrary code off the internet.
- 32:01But sometimes it could go wrong.
- 32:03Yeah.
- 32:04It would be nice to get to a world where that's not required or at least for dependency resolution.
- 32:11And like the standards are moving in that direction.
- 32:13Yeah, exactly.
- 32:14I mean, you might, if you're going to use it, you're going to have to get it.
- 32:16But if you just want to know, well, what versions do I need to put these two things together?
- 32:20You shouldn't have to do that.
- 32:21Yeah, exactly.
- 32:22Because today for NumPy, for example, if you didn't have a wheel, you would have to run some arbitrary code to ask it for its dependencies.
- 32:28Yeah, exactly.
- 32:29Well, let's talk about some of the usages here.
- 32:32Let's see some more interesting comments in the chat.
- 32:35I'll get back to them.
- 32:35First of all, you know, is it like Highlander the movie?
- 32:40Should there just be one?
- 32:42Is UPy a thing that I put into, say, my requirements file if I want to use it?
- 32:47Or do I install it just once for my machine?
- 32:49Like, what's the scale?
- 32:51UV.
- 32:52So there's a lot of different ways.
- 32:54You can, there's a lot of different ways to install it.
- 32:56You definitely can install it into a virtual environment.
- 32:58My general recommendation would be to install it on your machine once.
- 33:03Because an interesting thing about uv is you don't need Python to install it.
- 33:09And it doesn't have, you need to have Python on your machine.
- 33:13Because we need to be able to, for example, build source distributions or know where to install the thing.
- 33:19Right?
- 33:19We have to install into a virtual environment somewhere.
- 33:22And so you have to have Python installed on your machine.
- 33:26But uv does not depend on Python.
- 33:27So like it can install into arbitrary virtual environments or into arbitrary other Python interpreters.
- 33:33So that's why we generally recommend using like these standalone installers that we have at the top of this snippet on the screen.
- 33:41They're like the curl and the PowerShell invocations.
- 33:45Those will install a single binary on your machine that's uv.
- 33:52And from there, you can use uv to install into virtual environments that it creates, to install into your system Python, to do whatever.
- 34:00So like I would say most people, based on the statistics, based on our download statistics, most people still install uv with pip, which makes sense, which is not that surprising to me.
- 34:11But I would generally recommend having like one uv install on your machine.
- 34:15Although if you do install into a virtual environment, like that's also totally fine.
- 34:19Like nothing's going to go wrong.
- 34:20It's just not completely necessary because a single uv can already install into that virtual environment.
- 34:26Right.
- 34:26You're never going to import uv.
- 34:29No.
- 34:29I mean, you might, but in general, people are not going to.
- 34:32I think you can.
- 34:34I'm trying to think what would happen.
- 34:36It's not like things like pie tests and other things.
- 34:42A lot of times there could be just one of those, but then you want to use fixtures and you need to import something out.
- 34:48So then it really needs to be in the virtual environment and accessible like a library.
- 34:52But this is just something you run maybe even before your codes, before your virtual environment exists.
- 34:57Right.
- 34:57Like it is, it really kind of does ideally exist outside of it, I think.
- 35:01Yeah.
- 35:01Ideally it exists outside of it.
- 35:03And there are some cases where you'd want to install it within the virtual environment, but ideally it exists outside of it.
- 35:07The other thing that's nice about using the standalone installers, like at the top here, is soon we're going to ship like a self-update command.
- 35:16So you can do like uv self-update and it will update uv to the latest version.
- 35:20And we can't really support that if you install it with a different package manager, like pip or brew.
- 35:25Those have their own upgrade commands, obviously.
- 35:27But like if you install it with our installer, then like we can control the upgrades and stuff like that and provide some other features.
- 35:36So that's generally what we recommend, but obviously we're always going to support like installing with pip and stuff too.
- 35:41Yeah.
- 35:41I'm all about pipX these days.
- 35:44I really like...
- 35:45Yeah, we're pipX.
- 35:46That's mine.
- 35:46Yeah, yeah.
- 35:48PipX really, you know, you can just say, kind of like brew, you can say upgrade all my Python CLI tools.
- 35:53PipX upgrade all.
- 35:55Yeah, yeah.
- 35:55Yeah, yeah, yeah.
- 35:57I find rough and uv is just, you guys are moving super fast and there's frequently an update.
- 36:02There are often updates, yeah.
- 36:04Yeah.
- 36:06Yeah, and then, you know, the uv interface, like it's meant to be pretty familiar to, or it's meant to be, I guess, hopefully very familiar to people who have used, who are already using pip and other tools.
- 36:18And so like UVVM creates a virtual environment.
- 36:22And then there's, we have this sort of pip subcommand.
- 36:27So like uv pip install flask.
- 36:29And that doesn't call or use pip in any way.
- 36:33We're just using pip here to convey what the interface looks like.
- 36:37And part of the motivation there is at some point in the future, we probably want to add a new interface to uv that's a little bit more high level.
- 36:49So you could think of something like Poetry, where they have like Poetry install.
- 36:55You know, they have this sort of higher level interface for interfacing with packages.
- 37:00We want to do something like that.
- 37:03And so that's why we left the top level of the interface clear, because we might kind of like integrate and, sorry, innovate and like ship a bunch of stuff that would otherwise break this interface.
- 37:13So like, by putting this stuff under pip, we basically created this like isolated space where we can make sure that those commands like keep working no matter what we choose to change in the future.
- 37:25And it's very similar to the pip's interface, right?
- 37:27It's like pip install, then it could be a package name.
- 37:29It could be a requirement, -r requirements file.
- 37:31We support editable installs.
- 37:33We support like URL dependencies, get dependencies, all that kind of stuff.
- 37:38Right.
- 37:39All the stuff you might normally do pip install something for the most part, that's the same.
- 37:44Yep.
- 37:44Yeah, exactly.
- 37:45And we support a lot of the same flags, too, that like pip supports.
- 37:48So like --index URL, --extra index URL, like --no binary, like all that stuff.
- 37:54Like we've put a lot of, we don't support every flag, but we've put a lot of effort into supporting a lot of them.
- 38:00And we've added more over time.
- 38:01Like now we support like --no build isolation and stuff like that, that maybe most listeners have never even had to look at.
- 38:08But like, you know, these things matter in some circumstances.
- 38:11And so like over time, our goal is to add like more of the interface.
- 38:15But, you know, I would say for common use cases, I would expect that it just works.
- 38:22Like just adding uv at front, like it should just work.
- 38:25Now, as you become more complex, it won't.
- 38:29And you'll run into some, we have a whole document of like subtle ways that we deviate.
- 38:33Some are intentional.
- 38:34Some I consider bugs, right?
- 38:36Like some we want to fix over time.
- 38:37But the intention is that for most people, we want it to just work.
- 38:41Once we fix the first round of bugs following the release, of course.
- 38:44Yeah, yeah, sure.
- 38:45So you've got a uv venv VIMP, for creating a virtual environment.
- 38:50And it has a lot of the flags that Python dash MVNV would have, where you can say, you know,
- 38:57bring along pip or upgrade things or set the prompt name, that kind of stuff, right?
- 39:02Yeah, exactly.
- 39:03Yep.
- 39:03Similar for uv, pip, and then stuff.
- 39:06What I find I do for most of my work, at least if I'm not trying to teach or do a presentation,
- 39:11where people are like, what did you just do?
- 39:13These all have kind of aliases, right?
- 39:15Like uv, pip, install, dash, R, requirements.txt is just PIR, pip install requirements.
- 39:21You know, things like that, right?
- 39:22Yeah, yeah, yeah.
- 39:23And so try to just take the common stuff.
- 39:25And it doesn't matter if it's pip or uv really backing it from my CLI ergonomics, right?
- 39:33I'm just, I use my alias.
- 39:35And if I want to change that, I just go and edit it.
- 39:38And so for me, it was super easy to switch to adopt these things because I'm like, I edit
- 39:43my ZSH RC file once and now everything just, I just do the same stuff and it works, but
- 39:49the new way, way faster.
- 39:50Yeah.
- 39:51And, you know, the goal of like pip compatibility has been interesting because there are actually
- 39:57like some things that we very intentionally want to do differently.
- 40:00And like, I won't speak for the pip maintainers, but I think in some cases, there are probably
- 40:05things that they would do differently too, if they could.
- 40:08I think so too, yeah.
- 40:09Yeah, because like pip, I mean, pip is extremely important and its number one goal is like,
- 40:16it needs to be like robust, right?
- 40:19It needs to keep working and it needs to be compatible.
- 40:22And because it's like, it's truly like the cornerstone of like a lot of the Python ecosystem.
- 40:27And so pip, it's very, it's harder for them to change things, especially in a breaking
- 40:32way.
- 40:32And they have to be really thoughtful and do that over a long period of time.
- 40:36And so we're in kind of a privileged position, honestly, because we come in with a new tool.
- 40:41We can actually do a bunch of, choose to do things differently.
- 40:44And some people will get upset about it, obviously, because they're like, this isn't exactly how
- 40:48PIP does it.
- 40:49I'm trying to hold firm on some of those things and also be open-minded on others.
- 40:53Right.
- 40:53But like, you know, like one thing that we do that's different, that's, I guess maybe it's
- 40:58not evident from this exact, from this screen exactly, or I guess it sort of is.
- 41:01So when you do UVVM, we default to the name .vm.
- 41:05So like, if you don't provide a name, we just default to .vm.
- 41:08And there was a PEP to make that a standard that got pulled back.
- 41:13But like, it's not like we're trying to make it a standard, but I just think it's a good
- 41:16default.
- 41:16Like we want to abstract away some of this stuff.
- 41:18And so you can just like have a virtual, you can obviously pass a name if you want,
- 41:21but we default to .vm.
- 41:23That's different from other tools.
- 41:24And then, you know, the other thing is when you do UVPIP install, by default, we require
- 41:29a virtual environment.
- 41:30And so if you do UVPIP install Flask and there's no virtual environment, like we'll throw, we'll
- 41:37error.
- 41:37And it doesn't have to be active.
- 41:39We'll look for it in the current directory, even if it's not active.
- 41:42So like if you do UVVM, then UVPIP install Flask, like it will work.
- 41:46And in my opinion, it will do the intuitive thing, which is it will install into the environment
- 41:50in the current directory.
- 41:51So it's like, it's trying to provide...
- 41:53It will traverse up.
- 41:53Like if I'm a little farther down, it'll go up and say, oh, just, oh, that's amazing.
- 41:58Exactly.
- 41:58So it'll find the virtual environment in the current directory or any parent directory.
- 42:01So like for me, that's just like a nice default workflow that encourages virtual environments
- 42:10and like doesn't get in your way about it.
- 42:11And we do have a flag for installing outside virtual environments, but the difference is in
- 42:15UV, you have to opt in if you want to do something like install into the system Python.
- 42:20It's a very virtual environment first while abstracting away a lot of the details of virtual environments.
- 42:26So there are things like that where we've made intentional decisions.
- 42:30In my opinion.
- 42:31Yeah.
- 42:31Yeah.
- 42:32And I think, and it's nice because we can start with that behavior and we're in a privileged
- 42:40position because we can start with different defaults.
- 42:42Yeah, for sure.
- 42:43So if I do, excuse me, if I do a uv, VNV for a virtual environment, then maybe I uv pip install
- 42:53something, but then I forget and I pip install something else.
- 42:58Does it break?
- 42:59Is it okay?
- 42:59As in the third time there's no uv?
- 43:02Well, yeah, exactly.
- 43:03Like, so I'm in uv pip install, something uv pip install that.
- 43:07And I was, oh, I forgot this thing.
- 43:08It was pip install.
- 43:09Oh, I forgot the uv.
- 43:11To this day.
- 43:11No, it shouldn't.
- 43:13It shouldn't break.
- 43:13Assuming.
- 43:14So let's say you activate the virtual environment.
- 43:16Yeah.
- 43:16Yeah.
- 43:16It's already activated.
- 43:17Okay, cool.
- 43:18So you do uv VM, you activate the virtual environment, you do uv pip install flask, and then you
- 43:22do pip install black or whatever.
- 43:24Yeah.
- 43:24Something, yeah.
- 43:25That should work just fine because like the thing that we ultimately create in the virtual
- 43:30environment, like that's all based on standards.
- 43:33So like the stuff that we do in the virtual environment to install packages, it should look
- 43:38like roughly indistinguishable from what pip would do.
- 43:41And it's totally interoperable with pip.
- 43:43So like similarly, if you did pip install and then like pip install flask and then uv pip
- 43:48uninstall flask, like that would work correctly.
- 43:51Like pip would install flask and we would remove it because everything that pip and uv are doing
- 43:55in the virtual environment is based on standards.
- 43:58So the way that we add and remove packages, all that kind of stuff, it should be totally interoperable
- 44:03with other tools.
- 44:03Okay, cool.
- 44:04PyPI is pretty good at having analytics around what packages are being downloaded, what's popular,
- 44:11what platforms.
- 44:12Do you do anything like send a user agent or something so that people could answer the
- 44:18question?
- 44:18Or how many people are using straight pip and how many people are using uv in a year?
- 44:23Yeah, we sent, we set a uv user agent and it's right now it's just uv in the uv version.
- 44:29There's an open issue in the repo from Pradyan who works on pip that outlines all this stuff
- 44:37that pip includes in its own user agent, which we want to add, which is pretty interesting.
- 44:43I actually didn't know this.
- 44:44So pip in its user agent includes a lot of things about the current Python platform.
- 44:49Data that they use in PyPI basically to inform decisions.
- 44:56Like, oh, no one's using Python.
- 44:58Right.
- 44:58This is just, I don't think this is actually how it's used, but just as an example.
- 45:01Oh, no one's using Python 3.7 anymore.
- 45:03Let's lower priority on that because no one's installing Python with Python 3.7.
- 45:08And so we want to add, we don't have that right now.
- 45:11We're planning to add it.
- 45:13But yeah, it will be interesting to see.
- 45:16We can get statistics over time too on like uv and pip and how common they are in different
- 45:21dimensions.
- 45:21Yeah.
- 45:22You know, one thing that would be kind of fun to have is, I'm not sure if it's at all
- 45:26interesting to you, but to have some kind of cron job or background thing, even if you
- 45:33just interact with uv, if it kind of kicked off sort of a background process that did its
- 45:37thing, but, you know, take the history of maybe the top 500 packages plus the ones you've
- 45:43used and just kind of keep a cache up to date on your system.
- 45:46So if you're on an airplane or you're in a coffee shop or for some reason, the internet's
- 45:51not great.
- 45:51Like it's kind of pre-filled the cache and everything's there.
- 45:55Yeah.
- 45:55And that kind of, that might be fun.
- 45:58Yeah.
- 45:59We do have a dash track offline flag, which will like, it forbids network requests, obviously,
- 46:05but it, so like it'll, it'll try and do the full install without accessing the network.
- 46:09Yeah.
- 46:10That's cool.
- 46:10It would be cool to pre-fill the cache.
- 46:12Yeah.
- 46:12But it's just like, you know, if you're a uv user and you sit down on your computer and
- 46:16for some reason the internet's out, I'm at a conference, I'm doing a talk and it's got
- 46:19the dreaded, terrible conference wifi.
- 46:21It's not the end of your demo.
- 46:22It's just like, yeah, see how fast this is?
- 46:24It's amazing.
- 46:24Yeah.
- 46:25Yeah.
- 46:26Yeah.
- 46:26Yeah.
- 46:26It was actually, it's actually funny because like the benchmarking, like when we do benchmarks,
- 46:30benchmarks can just vary so dramatically based on like internet connectivity, right?
- 46:36Like that's often, that is often the bottle.
- 46:38I mean, it's not, it's clearly not always the bottleneck because we're able to be faster
- 46:43than other tools.
- 46:43So like if it was always the bottleneck, I don't think that wouldn't really be true, but, but,
- 46:48but it matters a lot.
- 46:49Yeah.
- 46:49And so sometimes I'll throw on, on macOS, they have a tool called network link conditioner.
- 46:54So you can actually force.
- 46:56Like drag your network down.
- 46:57Yeah.
- 46:58You can force it down.
- 46:59And the categories are like, it's not literally called like bad mobile phone or something,
- 47:04but it's, that's like basically what it is.
- 47:06Yeah.
- 47:06It's like, it's like, it's like very lossy edge network.
- 47:09Like those are like the pre-built category.
- 47:11It's pretty funny, but like it is actually, that's a very helpful thing for benchmarking.
- 47:14Yeah.
- 47:15And sometimes actually, if you have a really good network connection, sometimes it's actually helpful
- 47:18to, to set that anyway, to a pretty good level, because then at least it'll be like very consistent
- 47:25across your executions.
- 47:27Anyway, it's something I've learned over time.
- 47:28Yeah.
- 47:29That is super interesting.
- 47:31So one of the things I think it's interesting to consider here is obviously this is way faster.
- 47:36I saw some of the announcements and some of the discussion around the announcements and the
- 47:43people were really surprised how fast this is.
- 47:45And I think, I don't think Rust is the full answer.
- 47:48I mean, you tell me if I'm wrong, but like one part, obviously making the code run ultra
- 47:52fast, that is an important part of it.
- 47:55But it also seems like you all have rethought some of the internal algorithms and some of
- 48:00the caching and some of the ways things work, maybe with a fresh take on it, or you're not
- 48:04constrained by the way it's been done for many, many years.
- 48:07So what elements are at play to make it as fast as it is?
- 48:11Is it just Rust or is it something else?
- 48:13So Rust is important, but the way I typically talk about frame it is that Rust is kind of like an
- 48:20enabler to writing really fast programs.
- 48:23It forces you to slash lets you care about certain things that matter a lot for performance that like
- 48:32in Python, there's actually just no way to care about them.
- 48:37I'm talking specifically here about memory allocation.
- 48:39Like in Python, that all just kind of happens.
- 48:42In Rust, you're forced to think about, am I going to allocate memory here or not?
- 48:46And like, when is it going to be deallocated and all that kind of stuff?
- 48:48And so that unlocks the ability to care and like be really careful in how you manage it.
- 48:54And so Rust is like a really important, Rust is an important part of the success story here.
- 48:58But I think it's like really, I think it would be really like very incorrect to say that it's
- 49:05like all about Rust and it's not a Rust versus Python thing.
- 49:08Right.
- 49:09Like if we could just recompile pip with.
- 49:11Yeah.
- 49:13So if you took.
- 49:14If you took.
- 49:14Cython or something.
- 49:15Boom.
- 49:15It would just be.
- 49:16No, it wouldn't be as big of a deal.
- 49:18Right.
- 49:19If you took pip and just like rewrote it line by line as close as you could in Rust, like
- 49:24it would probably be faster than pip, but it would not be nearly as fast as uv.
- 49:28Like we just do a lot of things differently.
- 49:30And part of like, I guess evidence for this too, is like throughout the development of uv,
- 49:35there were like multiple pull requests that sped up like uv as a whole by like 30 to 50%.
- 49:41So what does that say?
- 49:42That says that like, there's lots of different, those were all Rust programs.
- 49:45Right.
- 49:46So like we were able to write the same Rust program many times, optimizing it more and
- 49:51more and more.
- 49:51Right.
- 49:52Right.
- 49:52And so there's like so much engineering that went into making it fast.
- 49:57Some of it's like how the cache is designed.
- 49:58That was like a really important piece.
- 50:00And that's actually something that like pip could also do.
- 50:04And I think like it's possible a good outcome here actually is that like pip is able to take
- 50:10some of these changes and incorporate them over time.
- 50:13And we are kind of the guinea pig for that.
- 50:17Like we're going to kind of change user expectations a little bit about how the cache is set up.
- 50:21Like we're going to run into bugs about platform compatibility.
- 50:26Like we're going to run into bugs based on this cache design.
- 50:28Right.
- 50:29And like hopefully that could at some point help inform pip if they choose to redesign their
- 50:33cache this way.
- 50:34The cache design is really big thing.
- 50:35And then just a lot of like profiling the program, figuring out what the bottleneck is, and then
- 50:42like solving the bottleneck and just like really intense engineering work that was not me, but
- 50:47was like other people on the team to optimize some of that.
- 50:49Like a good example is it's like it sounds silly, but like we found that a bottleneck when
- 50:55all the data is cached and you're trying to do a resolution.
- 50:57So there's no network requests.
- 50:59Everything's local.
- 51:00One of the bottlenecks that we kept running into was parsing and comparing versions, version
- 51:06specifiers.
- 51:07So like in Python, when you have a requirements file, you have like FastAPI is greater than
- 51:13version one or whatever.
- 51:14And then in the FastAPI file, you have like FastAPI version 1.0.0, blah, blah, blah.
- 51:19So like those, like parsing those, and then we were comparing those.
- 51:24We were doing comparisons between version markers like so many times.
- 51:30Because it was just a constant thing in dependency resolution.
- 51:32It's like, can I use this dependency?
- 51:34Well, does it fit to this range?
- 51:35So Andrew Gallant from our team, like rewrote that parser and the version comparison specifier.
- 51:44And it's like, it's like one of the most incredible pull requests I've ever seen.
- 51:47Like it's like so, like every, every commitment is like so interesting.
- 51:50And he like optimized it so massively that it was like, he's basically representing the version
- 51:55in the end by like, like a 64 bit, like a U64 integer and comparisons is just like compare
- 52:02the two integers.
- 52:03And like, there was just so much engineering that went into it.
- 52:05And it sped up the cache case by like 30%.
- 52:07And so there's a lot of, there's just a lot of engineering that went into it.
- 52:12And, you know, again, it's harder for pip to do some of those things because they, the code
- 52:17bases, they have a lot, they have, they have actual users to support, right?
- 52:22Like we were able to do this before we launched publicly.
- 52:24Like we could break things, like we can do things, you know, we can make massive changes
- 52:30to the code base in short periods of time.
- 52:31So, you know, we're in kind of a privileged position to be able to really optimize the
- 52:35performance like that.
- 52:36But, you know, it's a big part culturally of what we wanted to do too, is like, we're going
- 52:41to make this thing extremely fast.
- 52:42Yeah.
- 52:43I'm seeing also interesting secondary effects, you know, talks and not, not, I think that's
- 52:49talks, talking about using it, making it faster.
- 52:52Just now here, Henry says build 1.1 is faster from looking at uv and the next version will
- 52:57also add uv as an installer choice, which is pretty impressive.
- 53:00Yeah.
- 53:01That's been a really cool, that's actually something I didn't really anticipate, but I'm
- 53:05really glad has happened, which is that there's a little bit of like, we ended up building
- 53:11something pretty modular.
- 53:12And so there's been a little bit of a, or a lot of like integrations with uv that people
- 53:17have been building.
- 53:18Like, like, Bernard had the, had the talks uv thing that was out like within a week, I
- 53:23think, which was like use uv to power talks in different ways.
- 53:28Yeah.
- 53:28Yeah.
- 53:28Knox, I think supports it bill pipe a slash build.
- 53:32You know, I've talked, I've talked to the hatch maintainer, you know, like he's pretty interested
- 53:39in making uv like an optional backend for hatch.
- 53:43So like that's really cool to me because it's all just like magnifying the impact.
- 53:48Yeah.
- 53:49And again, I don't know how much of that I anticipated, but it's really cool to see that
- 53:55like you could plug it into these other tools and they can just like go much faster.
- 53:58Yeah.
- 53:58So I don't know.
- 53:59I mean, that's been like, that's actually been like a big highlight from the release, honestly,
- 54:04has been the reception from like other maintainers of other tools who have been excited to integrate
- 54:08it in different ways.
- 54:09Cause it's just not, it just didn't happen.
- 54:11Like rough wasn't nearly as much of a fit for that kind of thing.
- 54:15Like there just aren't as nearly, there are some, but it's just not as natural to have like
- 54:19integrations with rough in that way.
- 54:21But for uv, it makes a lot of sense and it's been really cool to see.
- 54:24Yeah.
- 54:24It's more, uv is more of a building block than rough is rough fits in editors and CI and
- 54:29stuff.
- 54:30Yeah.
- 54:31Okay.
- 54:31Yeah.
- 54:31And there were, there were other tools, but yeah, it was, it's, it's mostly an end user thing
- 54:36and not a library, I think.
- 54:37All right.
- 54:38All right.
- 54:38So a couple of interesting things out in the audience.
- 54:40Let's, let's knock them out.
- 54:42Okay.
- 54:42So Tushar asks, and this is, I think a big tension that's building in the Python packaging space
- 54:49is packaging tools use Python to do stuff.
- 54:53What are the packaging tools control the Python?
- 54:56Who, who is controlling whom here?
- 54:59And so Tushar asks, will uv also install Python sometime soon?
- 55:02Can I just express, Hey, I want to use 312 on this and these dependencies.
- 55:07Yeah.
- 55:07We almost, we almost certainly want to do this.
- 55:10I don't think it will be, it won't be required.
- 55:13Like you can still use your own Python, but we almost certainly want to add Python bootstrapping.
- 55:19So like, that's another reason why the dream workflow is like you use the standalone uv installer,
- 55:25because then it's like, it will actually install Python for you too.
- 55:29And so like the reason, so then it's like, you don't have to have Python on your machine basically to start being productive with uv.
- 55:36You can just bootstrap the environment for you.
- 55:38And we can also do, you know, yeah, it would just be nice if you did, you know, pip compile, like uv pip compile, --Python 3.13 or something.
- 55:50And then we just like bootstrapped Python 3.13 and did the resolution on your machine.
- 55:53Like that's, that's kind of the workflow that we're trying to build towards.
- 55:56Yeah.
- 55:56Since you're so uv centric as well, it could be uv, V and V, you know, dash that version.
- 56:02Yeah.
- 56:02A hundred percent.
- 56:03And then we bootstrap it.
- 56:04Yeah.
- 56:05If you don't have, if you've got a cache, you just give it.
- 56:07And if you don't, then you, you get it on the machine.
- 56:09Exactly.
- 56:09Yeah.
- 56:10Yeah.
- 56:11So we'll definitely, we'll definitely do this.
- 56:12again, I do think it's important that it's not like required to use like the uv pythons.
- 56:17Yeah.
- 56:17we actually kind of had to do like a minimal version of this for, for our CI and testing.
- 56:25so, but it was a bash script.
- 56:28And then I think it became a Python script, but eventually it would be like built into uv.
- 56:32Yeah.
- 56:32Yeah.
- 56:33Yeah.
- 56:33I think that would be really.
- 56:34Yeah.
- 56:35I think it'll be super, really quite awesome.
- 56:36Yeah.
- 56:36I think it will be too.
- 56:37let's see.
- 56:39Tushar also says loves that the --require V and V.
- 56:43Yep.
- 56:43As a thing.
- 56:44he thinks it'll become the default and also points out for those who don't uv that
- 56:49pip require virtual uv as an environment flag is in your RC files.
- 56:53It's pretty nice.
- 56:54I need to do that.
- 56:55Yes.
- 56:55The other day.
- 56:55Yeah.
- 56:56You can, you can.
- 56:56Oh, I spelled that to the, to my, to the wrong spot.
- 57:00Yeah.
- 57:00So pip can be configured to require virtual ones.
- 57:03Yes.
- 57:03Yeah.
- 57:04I do something weird.
- 57:05I'm actually looking at my terminal behind our, our shared screen meeting here.
- 57:09And my prompt says global V and V.
- 57:12And so one of the things that I do is I have a, just, if I log it, if I open up my terminal,
- 57:16it already has an activated virtual environment.
- 57:18That's just for whatever.
- 57:19Oh, interesting.
- 57:20Just to avoid messing up your system Python.
- 57:22Just to avoid messing up.
- 57:23Or so I can have a, I can just make that virtual environment version of Python.
- 57:27I want it to be, even if it's not the system one in general that I want to set, you know,
- 57:31just like it's its own thing.
- 57:33And so it wouldn't actually help me, but I still like that.
- 57:35Cause that's smart.
- 57:36Yeah.
- 57:37That's smart.
- 57:37Thanks.
- 57:38Yeah.
- 57:39I've learned a lot about like, oh my gosh.
- 57:41I mean, I've learned a lot about packaging.
- 57:43Like I didn't know like anything about packaging, you know, like six months ago.
- 57:47I shouldn't, I should actually shouldn't admit that.
- 57:49Cause it's really bad for my credibility, but like I've learned a lot about packaging.
- 57:53And in the past, like two weeks, I've also learned a lot about like system pythons, like
- 58:00how Python is installed and like how on like older versions of like Debian, like Python,
- 58:06they do like a lot of customization to Python that makes it like really different from like
- 58:10I learned like way more about this than I ever thought I would.
- 58:14I think it's fine to say that.
- 58:16I'm out on system pythons, but we do support them.
- 58:18Yeah.
- 58:19Awesome.
- 58:19You know, someone asked me like, no, Michael, you must know all of the standard library.
- 58:24I'm like, what are you crazy?
- 58:25No.
- 58:25Yeah.
- 58:26Why don't I want to stop the standard library?
- 58:28Yes, exactly.
- 58:29And I think it's the same thing about packaging.
- 58:31There's like so many edge cases.
- 58:32If you never interact with an edge case and you don't care about that edge case, why would
- 58:36you take the week or whatever to study it?
- 58:38Like it's just, it's irrelevant to you until you need it.
- 58:40And now you've dove in head first here.
- 58:44So then you're in the deep end.
- 58:47We spent so much time.
- 58:48I shouldn't even bring this up, but we did.
- 58:51Okay.
- 58:51When we were, whatever.
- 58:53I want to tell the whole story because I need to not, but like we did consider like lots
- 58:56of different names for this tool and multiple times we considered a name and then it turned
- 59:01out to be a standard library module that none of us had ever used.
- 59:05Like we wanted to use wave W-A-V-E.
- 59:08Okay.
- 59:09But that's a standard library module.
- 59:10Yeah.
- 59:10Yeah.
- 59:11I was like, oh, I had no idea.
- 59:12Is that for working with a wave audio files?
- 59:14Probably it is.
- 59:15Yeah.
- 59:15Like W-A-V files.
- 59:16Yeah.
- 59:17Yeah.
- 59:17Interesting.
- 59:18Yeah.
- 59:18There's a bunch of stuff.
- 59:19There's the whole dead batteries and removing certain things that like, you know, I know it's
- 59:23like a library, but some of these things I had never seen.
- 59:27Yeah.
- 59:28Well, it's naming tools and packages is its own whole special deal.
- 59:33And we have half a million packages in PyPI.
- 59:35And so how are you going to not conflict with that?
- 59:38Have an interesting name that's not for typo squatting.
- 59:42Yeah.
- 59:42Exactly.
- 59:42Hard.
- 59:43Yeah.
- 59:43It's a hard problem.
- 59:44Yeah.
- 59:44I don't even get me started on the name stuff.
- 59:46Someone actually donated this name to us, which is very kind of them.
- 59:49Oh, that's actually very cool.
- 59:50Very cool.
- 59:51All right.
- 59:51One other thing I do want to talk about here.
- 59:55Padnish says, asks about, you know, is there a future where Rye, R-Y-E and uv go hand
- 1:00:01in hand.
- 1:00:01Also great work.
- 1:00:02But maybe just talk a bit about Rye.
- 1:00:05That was by Armin Roeniger.
- 1:00:06And it kind of had a similar zen as uv, but really different.
- 1:00:10Yeah.
- 1:00:11So we, yeah.
- 1:00:12So we're taking over like maintainership of Rye.
- 1:00:15And we've just been like, I think I started talking to Armin like right after Rye got released,
- 1:00:23which was PyCon last year.
- 1:00:25I think it was during PyCon it got released.
- 1:00:27And we talked like shortly after.
- 1:00:29And we just found that like we were trying to do a lot of the, we were trying to solve a
- 1:00:33lot of the same problems.
- 1:00:33And we had like very similar vision for what we wanted packaging to be.
- 1:00:37But like we were coming at it from very different angles.
- 1:00:40Like Rye kind of came at it from, let's solve the Python bootstrapping problem.
- 1:00:44So we're going to ship a Rust tool.
- 1:00:45That seems like it's main focus.
- 1:00:46Yeah.
- 1:00:46Yeah, exactly.
- 1:00:47And then internally it was actually using like pip-tools and pip to do installs and resolutions.
- 1:00:54And then the thing that, I think the thing that Armin came to realize was like, if you want
- 1:00:58to fulfill this whole vision, you kind of need to like reinvent a lot of those internals.
- 1:01:03And meanwhile, like we were building uv, which was like basically those internals.
- 1:01:07And I was like, we're going to put a lot of effort into like building this packaging stack.
- 1:01:13And so we kind of found that like, it was just a really, we're trying to get to the same
- 1:01:17place.
- 1:01:17And we were putting in a lot of the engineering investment on building a lot of kind of building
- 1:01:22blocks.
- 1:01:22And we want uv to evolve into something that could like fully replace Rye.
- 1:01:28So we want it to evolve in that direction.
- 1:01:30And in the meantime, like we're going to keep maintaining Rye and kind of using it as like
- 1:01:36a little bit of a test bed for like experimental things.
- 1:01:39Like Armin added like pie test support to it, for example.
- 1:01:42So we're like, we're kind of playing with like, you know, that's meant to be more of
- 1:01:45an experimental test bed for like the future that we want to achieve.
- 1:01:49And over time, we're going to kind of evolve uv up to the point that hopefully it can fully
- 1:01:52replace it.
- 1:01:53And then we can provide a clear migration path for it.
- 1:01:55So we're going to keep maintaining it.
- 1:01:58It is our intention for uv to like, to, you know, supplant it at some point in the future.
- 1:02:03But it'll take us like time for it to get there and be able to do all the things.
- 1:02:07But, but the visions were just so similar that it seemed like it made a lot of sense to
- 1:02:11try and consolidate and kind of team up on it.
- 1:02:14Yeah.
- 1:02:14They do seem pretty similar.
- 1:02:16And I can, I can see the direction that you're going in it.
- 1:02:19It's going to make them more similar.
- 1:02:20Yeah.
- 1:02:21I know it'll take time.
- 1:02:22And like, you know, this release of uv is like, it really is like the first release,
- 1:02:26you know, it's like, like I kind of use some of this stuff as like pretty low level.
- 1:02:30Like, like we want to build something that feels higher level and more, more automatic
- 1:02:34in the future.
- 1:02:35But this, these are kind of like the ability to install and uninstall and resolve packages.
- 1:02:40These were like the fundamental things we needed and need for anything we were going to do.
- 1:02:44And so this goal was really, let's take those and let's put them in a form that's like immediately
- 1:02:48useful to people.
- 1:02:50Yeah, for sure.
- 1:02:50One more Rye question.
- 1:02:53Then I have other questions.
- 1:02:54So uv will replace Rye.
- 1:02:56Do you recommend using Rye or uv or what's the, what's that side of the story, right?
- 1:03:01Yeah.
- 1:03:01Yeah.
- 1:03:02Yeah.
- 1:03:02It kind of depends on what you're doing.
- 1:03:04So like, like Rye uses uv under the hood.
- 1:03:06So like Rye uses uv for resolution and installation.
- 1:03:11So if you're using Rye, you're using uv.
- 1:03:12I, like I say, I consider uv to be like, especially if you're like a company or something, like I
- 1:03:19would say uv is production ready for, for you.
- 1:03:22Rye, you're buying into a little bit more of something that's a little bit more experimental.
- 1:03:28Like I think Rye is a good fit for like professional projects, hobby projects, libraries, smaller
- 1:03:33projects.
- 1:03:33I don't know that I would like, you're just buying into more change, I think.
- 1:03:39Yeah.
- 1:03:40And so if you're already in a part of your monorepo, that's got a million lines of code
- 1:03:45and a hundred people on it.
- 1:03:46Yeah.
- 1:03:46You can certainly, you can certainly try it, but you should know that you're buying into
- 1:03:49something experimental is the way I'd put it.
- 1:03:51Whereas uv, like you could also view uv as experimental if you want.
- 1:03:54Like it's very new, right?
- 1:03:56Like we've, we're like when we launched, we had, I mean, I think having issues is actually
- 1:03:59good because it means people are using your project, but we had like hundreds of
- 1:04:02issues.
- 1:04:03And we closed and we closed, we've closed like hundreds and hundreds of issues since
- 1:04:07we launched.
- 1:04:07Yeah.
- 1:04:07You guys have been super, yeah.
- 1:04:09You've been super responsive on it.
- 1:04:10Like we, you and I've had some exchanges there.
- 1:04:12Yeah, we did.
- 1:04:13And yeah.
- 1:04:14Yeah.
- 1:04:14That's some nice changes I saw going on, but like I said, almost every day.
- 1:04:19It's getting like way better.
- 1:04:19It's great.
- 1:04:20Yeah.
- 1:04:20And it's just getting way, way better.
- 1:04:22Like that's the thing about developing in private is like, like we just, once we released
- 1:04:26it, we finally, we actually had users who could use it and tell us all the things we missed,
- 1:04:30also the things we didn't think about.
- 1:04:31It's just like every week getting way better.
- 1:04:32So like it's getting more and more stable.
- 1:04:34And like, I would use it in production for my stuff for sure.
- 1:04:39And I recommend it for production, but like Rye is just a little bit of a different story.
- 1:04:44I think with Rye, you know, it's not like we're going to shut it down tomorrow or anything
- 1:04:48like that.
- 1:04:48Like it's going to be, it's going to continue to be supported for sure.
- 1:04:51but you are, and I think it's branded this way, which is you are kind of buying into
- 1:04:57a little bit of an experimental tool.
- 1:04:59Yeah.
- 1:04:59Also a bit of a workflow.
- 1:05:00Yeah.
- 1:05:01It's a very opinionated workflow.
- 1:05:02Yeah.
- 1:05:03Yeah.
- 1:05:03Whereas UVs were designed to kind of slot into existing workflows.
- 1:05:07Sure.
- 1:05:08It's a little more foundational.
- 1:05:10Speaking of which, I really like that, you know, so many of these tools have their own,
- 1:05:15their complete own way.
- 1:05:17Like, I know you're going to do that, but we're going to start up our shell and then
- 1:05:20you're going to run these three commands and then we're going to have our own lock file
- 1:05:23and we're going to have our own things.
- 1:05:24And it's, it's amazing if you drink the Kool-Aid, if you go all in on the tool, but if you don't,
- 1:05:30then it's like, ah, okay, well, what is this thing even doing?
- 1:05:33It's more in my way than it's helping me, you know?
- 1:05:35And so on.
- 1:05:35So the fact that a lot of, a lot of this is kind of baking in the pip-tools way of there's
- 1:05:42going to be this external tool that can manage some of your stuff for you, but it's not
- 1:05:46prescribing a workflow.
- 1:05:48A hundred percent props for that.
- 1:05:49Love it.
- 1:05:50Thanks.
- 1:05:50Yeah.
- 1:05:51I wanted, like, I wanted to build something that, again, I use the word like modular a
- 1:05:55lot and I think it can mean different things, but like rough was kind of like this too.
- 1:05:58Like in rough, you can use it as like just a linter or like just a formatter or both.
- 1:06:04And like with uv, like you could use uv, like just to create virtual environments or just
- 1:06:08to do dependency resolution, but use pip for your installer or something.
- 1:06:12Like it's designed to be kind of flexible in how you choose to use it.
- 1:06:17And I want to, I want to maintain that.
- 1:06:19You know, I think, I think we'll start to introduce more opinionated workflows, but I think that
- 1:06:24we'll continue to provide this kind of pick and choose model as well.
- 1:06:29Yeah.
- 1:06:30Yeah.
- 1:06:30I think it's great.
- 1:06:31It lines right up with the way I do things.
- 1:06:33And also I really like it as both someone who might do presentations either at a conference
- 1:06:38or in a course or teaching because you're not putting, you know, the whole virtual environment
- 1:06:43stuff is already such a kind of a large barrier that comes a little early in people's learning
- 1:06:48path, right?
- 1:06:49They're like, I want to run Python.
- 1:06:50I want to run this thing.
- 1:06:51Whoa, you don't just install this.
- 1:06:53You don't just use it.
- 1:06:54We're going to talk about virtual environments.
- 1:06:56Like I don't care about those.
- 1:06:57I just want to run it.
- 1:06:58Like, but you're going to need to install something.
- 1:06:59So here we go.
- 1:07:00We're adding more workflow and more specific ways of working there.
- 1:07:04I think while trying to help a lot of times they end up just adding more friction at the
- 1:07:08start.
- 1:07:09Yeah.
- 1:07:09Yeah.
- 1:07:10And like, I guess my philosophy there is like, I want us to, I want us to like embrace virtual
- 1:07:16environments.
- 1:07:16Actually, Rai has this philosophy too, which is like Rai does use virtual environments and
- 1:07:20like virtual environments actually have a lot of, there's a lot of benefits to embracing
- 1:07:24them.
- 1:07:24Like all the editors and such, they're all built around virtual, they all are all built around
- 1:07:28virtual environment detection and stuff like that.
- 1:07:31But I wanted to feel, I want to feel a little, honestly, like it has a really bad reputation,
- 1:07:36but I wanted to feel more like node modules, you know, where it's like, it just kind of
- 1:07:40works in your, it just kind of sits in your project and your project just does the right
- 1:07:43thing.
- 1:07:43and I know people make fun of node modules usually for being big.
- 1:07:47but like, but that's the developer experience I want, which is you don't think, you don't
- 1:07:51think of the virtual environment as this weird other thing.
- 1:07:53It's just kind of like the project environment and it just kind of works.
- 1:07:56And I think, I think you've got that by not like fielding people from it, but abstracting
- 1:08:01some of it away for people that don't need to think about it.
- 1:08:04Yeah.
- 1:08:04There was a, there was an amazing, it's not a joke, but it's, I guess something that's
- 1:08:10a prank that somebody, came up with here.
- 1:08:14I'll put it on the screen.
- 1:08:15It's called when everything becomes too much, the npm package chaos of 2024.
- 1:08:20And I was just, as you were talking about node modules, it's amazing.
- 1:08:26So it's more of a statement of like, well, how super interdependent or how many combinatorial
- 1:08:33or transitive dependencies does a couple of npm things have?
- 1:08:37Like, for example, I used tailwind, but there was maybe 50 things in my, my node module for
- 1:08:43just using tailwind in my project.
- 1:08:45Right.
- 1:08:45So anyway, this one is some, this, an npm username, Patrick JS launched a troll campaign
- 1:08:51where a package called everything, it depended on every other npm package.
- 1:08:55So if you, you know, npm install everything that literally tried to download the repository.
- 1:09:01That's kind of, that's kind of amazing.
- 1:09:02Wow.
- 1:09:03I know it's, it's devious, but it's also kind of like, okay, that's, that's something else.
- 1:09:09Yeah.
- 1:09:09And Python independency trees tend to be much,
- 1:09:13like shorter, I guess, and like smaller, like you would tend to have way fewer dependencies.
- 1:09:17Yeah.
- 1:09:18they are sometimes like heavier, I guess.
- 1:09:21Cause like in Python, it's very common to have lots of native code.
- 1:09:23and like, I don't know, like PyTorch, like the PyTorch wheels that you download when
- 1:09:30they're zipped are like between a hundred and 200 megabytes.
- 1:09:34Wow.
- 1:09:34Okay.
- 1:09:35Yeah.
- 1:09:35Yeah.
- 1:09:36Like all the, all the ML stuff and all the native stuff, like those are like big, but,
- 1:09:40but the dependent, but the number of dependencies tends to be a lot smaller.
- 1:09:42Yeah.
- 1:09:43I totally agree.
- 1:09:44It's also very common to ship like foundational packages with like no dependencies or very few
- 1:09:49dependencies, which is very hard to do in, in JavaScript.
- 1:09:52Yeah, it is.
- 1:09:53it definitely is.
- 1:09:55All right.
- 1:09:55I think we're getting short on time here.
- 1:09:56I think I probably should let you go back and knock out another release of uv.
- 1:10:01I do have to do a release today.
- 1:10:02Okay.
- 1:10:02Thank you.
- 1:10:03Awesome.
- 1:10:03Cool.
- 1:10:04So Tony, the audience has been using uv in production for a couple of weeks now.
- 1:10:08Awesome.
- 1:10:09Seems very excited about it.
- 1:10:10And also I have two.
- 1:10:12It's an absolute delight.
- 1:10:14It hasn't.
- 1:10:14Oh, thank you so much.
- 1:10:16Yeah.
- 1:10:16I know there's certain things that it didn't do like right away, but then it, it came
- 1:10:21out and you added them quickly.
- 1:10:23I know there was some criticism for y'all for developing this in private and then releasing
- 1:10:28it.
- 1:10:28And I just want to say like, you know, thanks for doing that.
- 1:10:31And what's the alternative?
- 1:10:32You start with just a blank GitHub repo and people start to say, well, you should do this.
- 1:10:37You should be doing that.
- 1:10:37Like we have a vision.
- 1:10:38Let us just like get it a little structure in place and then we'll open source it.
- 1:10:42Like give us a month, you know?
- 1:10:44Yeah.
- 1:10:45I don't know.
- 1:10:45I think it's, I think it's excellent work you're doing.
- 1:10:47I appreciate it.
- 1:10:49I appreciate it.
- 1:10:49Yeah.
- 1:10:50Yeah.
- 1:10:50Yeah.
- 1:10:50You know, like I said at the start, it was different.
- 1:10:52It's different this time because anything we release, like, you know, you could work
- 1:10:58on a rough for a month and nobody cares until it starts to catch some traction.
- 1:11:01Right.
- 1:11:01But this is the instant that it hits.
- 1:11:03Yeah.
- 1:11:04We knew people would at least, would at least look at it and at least try it.
- 1:11:07And I think, you know, we wanted to make sure that whatever we released, first of all
- 1:11:10was good.
- 1:11:11And second of all, that we were ready to maintain it.
- 1:11:13And then I think with packaging too, it's like, there's just a lot of, it's just such
- 1:11:18a complex space that like, I wanted to make sure that we had a lot of clarity in the messaging
- 1:11:22around what the tool is and what it's not and like what we want it to be and what it isn't
- 1:11:27yet.
- 1:11:28And so I'm really happy with how the launch went and I've really appreciated just all
- 1:11:32the excitement, activity, engagement that we've had on the repo.
- 1:11:37It's been like, I don't know.
- 1:11:39I mean, honestly, it's been a lot of work, but it's like really, really, no, but it's awesome.
- 1:11:45It's like so energizing for me and for the team.
- 1:11:48And to see all the people picking it up and making it the foundation of their projects.
- 1:11:52And yeah, it's really cool.
- 1:11:53Yeah.
- 1:11:53And it's cool.
- 1:11:54You know, I guess another, like one other thing that's a little different this time is
- 1:11:57like, I talk, I just talked to more people who work on Python tooling at companies now than
- 1:12:02I did when I released Ruff, just because over the course of the past year, I've just met
- 1:12:07a lot of people and we've just talked about how they're using Ruff, how they're not.
- 1:12:10And so just hearing some of those stories too, of how like companies are starting to use
- 1:12:13it and like what the blockers are and like how much of a speed of it's providing has been
- 1:12:17pretty cool to see too.
- 1:12:18So yeah, I appreciate, I appreciate it though.
- 1:12:20Yeah, you're welcome.
- 1:12:21All right.
- 1:12:21We'll leave with this final thought from Juan.
- 1:12:23I installed 94 libraries in around two seconds.
- 1:12:25Incredible.
- 1:12:26That's great.
- 1:12:26All right.
- 1:12:26Yeah.
- 1:12:27All right.
- 1:12:29Well, I'm excited to see where things go and, you know, we'll maybe do a follow-up when,
- 1:12:33when you've got some more, more of the ideas in place.
- 1:12:36Sounds great.
- 1:12:37No, it's always, it's always a pleasure.
- 1:12:38Thanks so much for having me on.
- 1:12:39I really appreciate it.
- 1:12:40Yeah.
- 1:12:41Thanks, Charlie.
- 1:12:41This has been another episode of Talk Python To Me.
- 1:12:45Thank you to our sponsors.
- 1:12:47Be sure to check out what they're offering.
- 1:12:48It really helps support the show.
- 1:12:50It's time to stop asking relational databases to do more than they were made for and simplify
- 1:12:56complex data models with graphs.
- 1:12:58Check out the sample FastAPI project and see what Neo4j, a native graph database, can do
- 1:13:05for you.
- 1:13:05Find out more at talkpython.fm/neo4j.
- 1:13:09Want to level up your Python?
- 1:13:12We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:13:15Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:13:21And best of all, there's not a subscription in sight.
- 1:13:23Check it out for yourself at training.talkpython.fm.
- 1:13:26Be sure to subscribe to the show.
- 1:13:28Open your favorite podcast app and search for Python.
- 1:13:31We should be right at the top.
- 1:13:33You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:13:38and the direct RSS feed at /rss on talkpython.fm.
- 1:13:42We're live streaming most of our recordings these days.
- 1:13:45If you want to be part of the show and have your comments featured on the air, be sure to
- 1:13:49subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:13:53This is your host, Michael Kennedy.
- 1:13:55Thanks so much for listening.
- 1:13:56I really appreciate it.
- 1:13:57Now get out there and write some Python code.
- 1:13:59I'll see you next time.