Python Developer News: Markdown, Async AWS, and Testing

·26m 13s
Shared point

This episode covers essential updates for the Python ecosystem, ranging from high-performance formatting tools to critical security alerts and architectural advice for Python projects.

Tools and Libraries

Ruff for Markdown

Ruff is a high-performance Rust-based formatter now available for Markdown.
• It provides a unified command-line tool, pre-commit hooks, and extensive configuration options to enforce standards or ignore rules like line lengths.

Async AWS Integration

AIO Boto3 offers an asynchronous wrapper for Boto3, enabling cleaner and more performant interactions with AWS services like S3 and DynamoDB.

Best Practices and Architecture

Rethinking Classes

• The hosts discuss when to avoid using Classes in Python, suggesting that modules, data classes, or named tuples are often sufficient for stateless utility functions or simple data containers.

"Friends don't let friends create extraneous classes in Python."

Security and Testing

Coverage Updates

Coverage.py 7.10+ introduces built-in support for patching subprocess and multiprocessing, making it significantly easier to track code execution across complex process trees.

PyPI Security Alert

• A recent phishing campaign targeted the Python Package Index, underscoring the importance of upgrading to 2FA and utilizing WebAuthn (hardware security keys) for account protection.

Testing Resources

• The hosts recommend exploring pytest-django and modern Git workflows for testing, particularly leveraging commands like git bisect to simplify debugging.

Topics

Chapters

6 chapters
Python Bytes
AI chat — answers grounded in episodes