The Real Python Podcast cover image

The Real Python Podcast

Going Beyond requirements.txt With pylock.toml and PEP 751

May 16, 2025
Brett Cannon, a Python Core Developer and packaging expert, joins to discuss his journey with PEP 751 and the new pylock.toml format. He highlights the importance of evolving beyond requirements.txt for better dependency management. Cannon shares insights into the influence of lock files on project reproducibility and the collaborative challenges faced by the Python community in standardizing practices. He also reflects on the historical shift toward security-focused packaging, showcasing the growth in Python's ecosystem.
01:31:46

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • PEP 751 introduces the pylock.toml file format to standardize dependency recording, improving reproducibility beyond the traditional requirements.txt.
  • The initiative emphasizes security in dependency management by implementing mechanisms that ensure exact package versions are installed.

Deep dives

The Evolution of Dependency Management

The podcast discusses the introduction of PEP 751, which aims to standardize the process for recording Python dependencies through a new file format called PyLock.toml. This new format moves beyond the outdated requirements.txt and aims to provide an immutable record of dependencies necessary for project reproducibility. The speaker emphasizes that this initiative followed years of effort and discussions within the Python community to address the shortcomings of the previous system. With PEP 751, it is intended that developers will have a more reliable method for installing dependencies consistent across different environments.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner
Get the app