Skip to main content

UV: The Extremely Fast Python Package Manager Replacing Poetry

Super Data Science: ML & AI Podcast with Jon KrohnMay 11, 20254 min231 views
7 connections·10 entities in this video→

Introduction to UV

  • πŸš€ UV is an emerging Python package and project manager that has rapidly gained popularity, surpassing tools like Poetry.
  • πŸ’‘ It is praised for its increased speed, reliability, and ease of use, making it a compelling alternative for Python development.

Transitioning from Poetry to UV

  • 🎯 For the book "Python Polars: The Definitive Guide," the authors initially considered Docker for environment setup but found UV to be a simpler solution.
  • βœ… Installing UV and running uv sync proved to be an effortless way to set up the correct Python version and dependencies across various systems.

Performance and Rust-Based Tooling

  • ⚑ UV leverages Rust-based tooling, which significantly enhances performance, often achieving speeds more than 10 times faster than traditional Python package managers.
  • 🧠 This focus on performance aligns with the trend seen in other Rust-based tools like Polars, where speed is a key feature.

Advanced Use Cases: Benchmarking and Regression Detection

  • πŸ”¬ UV's speed allows for the creation of ephemeral environments on the fly, useful for tasks like benchmarking.
  • ⚠️ This capability was instrumental in identifying a performance regression in Polars, where queries became 10% slower.
  • πŸ” Using UV with git bisect helped pinpoint the exact commit in the Polars repository that introduced the regression, facilitating a quick fix by the Polars team.
Knowledge graph10 entities Β· 7 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
10 entities
Chapters2 moments

Key Moments

Transcript17 segments

Full Transcript

Topics13 themes

What’s Discussed

UVPython Package ManagerPoetryRustPerformanceReliabilityEase of UseDockerEnvironment SetupPolarsBenchmarkingRegression TestingGit Bisect
Smart Objects10 Β· 7 links
ProductsΒ· 4
ConceptsΒ· 6