korrents

korrents · video

uv: Making Local Python Workflows FAST and BORING in 2025

Hynek Schlawack · 39m · youtube.com ↗

20 korrents from this recording

Hynek Schlawack did not write this page.

Every claim below is a statement made in this recording, quoted word for word and linked to the second it was said, so you can hear it rather than take our word for it. The wording comes from the transcript published alongside the recording; the sentence above each quote is our reading of the claim, not their wording.

  1. 5:45 · watch on youtube.com↗

    it isolates you from security updates once they're only available on a major version bump in semantic versioning and it completely falls on its face with calendar-based versioning that is much more common than you may think.
  2. 6:00 · watch on youtube.com↗

    On the other side, bottom pinning as employed by uv simplifies the resolution process by limiting the amount of eligible versions while resolving them.
  3. 1 min later
  4. 6:57 · watch on youtube.com↗

    Like the objectively best debugger module called pdbpp that has just found new maintainership and works on new python versions again, which makes me incredibly happy.
  5. 7:08 · watch on youtube.com↗

    You can have an endless argument over what debugger is best, or you can accept that these development helpers a) are a matter of taste
  6. 2 min later
  7. 8:41 · watch on youtube.com↗

    I still recommend everyone to use the -m form whenever possible, both with uv run and python itself. It just removes another moving part that can go wrong and despite uv, there's still plenty of moving parts left that can break.
  8. 2 min later
  9. 10:19 · watch on youtube.com↗

    it's kind of experiencing a renaissance with generative AI coding agents that are much more effective at their hallucinations if you give them a quick way to obtain feedback to their own changes.
  10. 1 min later
  11. 10:52 · watch on youtube.com↗

    Secondly, and contrary to common claims, they are very much not standardized. For example, there's a huge difference between GNU and BSD makes.
  12. 11:04 · watch on youtube.com↗

    Make, as the name indicates, is for building things, usually software, and not running arbitrary commands. Which means that it is lacking affordances that you like to have, like easily passing arguments to a target, and that you occasionally have to fight make's instincts.
  13. 11:32 · watch on youtube.com↗

    So after literally decades of making do with make, and after years of living with a great alternative, I'm here to say just use just instead.
  14. 2 min later
  15. 13:51 · watch on youtube.com↗

    And you too shouldn't be afraid to create aliases for commands you use a lot. It's your shell, make it serve you.
  16. 13:57 · watch on youtube.com↗

    But also consider starting your commands and aliases with a comma, such that comma tab presents you with a nice list of only your custom commands.
  17. 2 min later
  18. 15:31 · watch on youtube.com↗

    I used to use tox for this, even though that it's not necessarily what it's been made for, but it's a great way to deterministically run commands in a Python environment. But with uv, I don't need that anymore for applications, since I have a just file anyway.
  19. 1 min later
  20. 16:44 · watch on youtube.com↗

    But if you sometimes need to run multiple processes at once, like a web app and a worker, do check it out. It's much nicer to use than docker-compose
  21. 1 min later
  22. 17:48 · watch on youtube.com↗

    Of course, just randomly reading dot env files before executing would be a security risk.
  23. 4 min later
  24. 21:56 · watch on youtube.com↗

    This means that the frequent gotcha of Git pulling some changes and your co-worker updated a bunch of dependencies in a lock file and your local virtualenv still has the old ones. It's solved forever.
  25. 1 min later
  26. 22:54 · watch on youtube.com↗

    people tend to get grumpy and defensive when you force new things on them. No matter how many serious problems it solves, replacing the plumbing can raise some grumbles but should be fine overall. But also forcing everyone to only run the code using uv run... This might be one bridge too far that could cause resistance.
  27. 5 min later
  28. 27:51 · watch on youtube.com↗

    It will look at how the envrc script changes the environment variables and then apply those changes back into your current shell which totally can and should be fish.
  29. 1 min later
  30. 28:49 · watch on youtube.com↗

    Being able to do this unconditionally is what Charlie Marsh means when he says that uv being categorically faster is enabling completely new workflows. This is one of them.
  31. 3 min later
  32. 31:54 · watch on youtube.com↗

    And the Philippines are probably the friendliest place on earth and incredible fun, especially on the less frequented islands.
  33. 1 min later
  34. 32:54 · watch on youtube.com↗

    Curiously, one of the most interesting compliments I got was that my conference speaking noticeably improved through my YouTubing, which is not something I expected to happen. But I guess agonizing over creating compelling educational material all year around helps creating other compelling educational material.