The Real Python Podcast

Python Thread Safety & Managing Projects With uv

22 snips
May 30, 2025
Discover essential techniques for managing multithreaded code in Python, including synchronization methods and race condition handling. Dive into a tutorial on using the uv tool for efficient project management, from initialization to dependency management. Explore exciting community updates, like advancements in PIP and new features in Python 3.14, including T-strings for enhanced logging. Plus, learn about innovative data visualization libraries and tools for maintaining data integrity, ensuring your projects are both powerful and reliable.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Use uv for Project Management

  • Use uv to initialize Python projects with a full directory structure and virtual environment automatically.
  • Manage dependencies and publishing directly through uv commands to streamline project workflows.
ADVICE

Install pre-commit via uv

  • Install pre-commit system-wide easily using uv's tool mode to simplify setup.
  • This approach reduces installation hassle and speeds up configuring pre-commit hooks.
INSIGHT

T-Strings Enhance Safety and Efficiency

  • T-strings return template objects instead of strings, allowing delayed processing of string components.
  • This enables safer and more efficient handling, such as avoiding premature string formatting in logging and preventing SQL injection.
Get the Snipd Podcast app to discover more snips from this episode
Get the app