Episode Details

Back to Episodes
Python Thread Safety & Managing Projects With uv

Python Thread Safety & Managing Projects With uv

Episode 251 Published 11 months ago
Description

What are the ways you can manage multithreaded code in Python? What synchronization techniques are available within Python’s threading module? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.

Christopher discusses his recent Real Python video course about thread safety. The course provides a quick overview of race conditions and how to use locks in your code. It then goes on to share a collection of additional synchronization primitives to make your code thread-safe.

We dig into a tutorial by Leodanis Pozo Ramos about managing Python projects with uv. The tutorial shows you how to quickly initialize a project, build the directory structure, add dependencies, and publish your package while practicing the commands inside uv.

We also share several other articles and projects from the Python community, including a news roundup, unraveling t-strings, what’s new in pip 25.1, an SVG-first plotting library, and a data modeling tool built on top of Polars and Pydantic.

Topics:

  • 00:00:00 – Introduction
  • 00:02:23 – PEP 773: A Python Installation Manager for Windows
  • 00:03:09 – PEP 784: Adding Zstandard to the Standard Library
  • 00:03:28 – Python Insider: Python 3.14.0 Beta 1 Is Here!
  • 00:03:48 – Django Security Releases Issued: 5.2.1, 5.1.9 and 4.2.2
  • 00:04:09 – ty: New Type Checker and Language Server by Astral
  • 00:05:01 – pyrefly: A Fast Type Checker and IDE for Python
  • 00:06:03 – The Future of Textualize
  • 00:07:08 – Managing Python Projects With uv
  • 00:12:20 – pre-commit: Install With uv
  • 00:13:03 – Python’s New t-strings
  • 00:16:38 – Unraveling t-strings
  • 00:18:33 – Video Course Spotlight
  • 00:19:50 – What’s New in Pip 25.1
  • 00:24:30 – Thread Safety in Python: Locks and Other Techniques
  • 00:28:40 – glyphx: SVG-first Plotting Library
  • 00:31:20 – patito: A data modeling layer built on top of Polars and Pydantic
  • 00:34:02 – Thanks and goodbye

News:

Show Links: