Python Packaging, MyPy 1.0, and SQL Alchemy 2.0 Updates
The Evolving Landscape of Python Packaging
Packaging Best Practices
• The PyPA (Python Packaging Authority) offers an official guide for packaging Python projects, emphasizing the use of pyproject.toml and a structured directory approach.
• While various build backends exist—including Hatchling, setup tools, FLIT, and PDM—the community continues to debate the best standards for maintainability and simplicity.
• For developers seeking simplicity, Flit remains a highly recommended tool for smaller projects due to its ease of use and streamlined publishing workflow.
Challenges and Ecosystem Shifts
• Discussion persists regarding the fragmented nature of the packaging ecosystem and the potential benefits of establishing a standardized default workflow.
• Some advocate for pip or pip-tools as foundational pieces to extend into broader workflow management to avoid enforcing overly complex, opinionated frameworks onto users.
Developer Tooling and News
Coding Efficiency and Safety
• MyPy 1.0 is now officially released, featuring a 40% performance improvement, refined type checking, and support for Python 3.11 features like the new Self type.
• The library Untangle provides a clean, dynamic way to interact with XML by treating nodes as Python objects, bypassing the complexity of standard navigation APIs.
Database Modernization
• SQL Alchemy 2.0 represents a massive architectural overhaul featuring native async support, modernized type hint integration, and significant performance boosts in schema reflection.
"SQL Alchemy 2.0 is a huge release. It's been years in the coming... to me, the biggest deal is the async."
Community Corner
Python Web Conference
• Now in its fifth year, the Python Web Conference continues to be a global, virtual-first event featuring tracks on PyData, cloud, and culture, catering to intermediate and advanced developers.