Python Governance, Pathlib, and LogGuru Essentials

·34m 16s
Shared point

Python News and Tooling Overview

This episode of Python Bytes covers essential updates and tools for the Python ecosystem, ranging from new governance models to improved developer utilities.

Logging and File Management

LogGuru: A new library designed to make logging "stupidly simple" with a single API function. It features easy file rotation, compression, beautiful colorized terminal output, and simplified traceback handling.
Pathlib: A strong recommendation to move away from os.path in favor of pathlib. The fluent, object-oriented API makes file path management significantly cleaner and more readable for Python 3.6+ users.

Python Governance

Steering Council: Following the resignation of Guido van Rossum as BDFL, the community has voted to adopt a five-member Steering Council as the new governance model. This approach is intended to provide leadership without the risks historically tied to a single dictator-for-life.

Data Science and Testing

Altair & Altair Recipes: A declarative approach to data visualization. Altair simplifies chart creation using pandas data frames, while Altair Recipes offers helper functions for complex graph types like heat maps and histograms.
PyTest Plugins: Highlighted tools include pytest-picked (runs tests related to modified git files) and pytest-clarity (provides specialized colorized diffs for failed assertions).

Web Security

The 'Secure' Library: A useful utility for web developers that automatically injects important security headers and configurations (like Strict-Transport-Security) across various Python frameworks like Flask, Django, and Tornado.

"This might be my new favorite logging library. Now I have to get over the inertia of actually having my other stuff already working and wanting to switch to it."


Topics

Chapters

6 chapters
Python Bytes
AI chat — answers grounded in episodes