Maintaining Systems and Modern Python Security

·31m 05s
Shared point

Web Infrastructure and Maintenance

The Future of WSGI

microWSGI has entered maintenance mode, prompting the community to seek modern alternatives.
• Recommended replacements for production environments include Granian (high-performance, Rust-based), Uvicorn, Hypercorn, and Gunicorn with Uvicorn workers.

Performance Optimization

Speeding Up Python with Rust

• Itamar Turing’s article, "Let's Build and Optimize a Rust Extension for Python," offers a guide on using Maturin and PyO3 to optimize performance-heavy functions.
• Key takeaways include:
• Choosing specific algorithmic bottlenecks for optimization rather than entire rewrites.
• Leveraging Link Time Optimization and specialized randomizers for better efficiency.
• The result is a significant performance boost for memory-constrained algorithmic tasks.

Security Awareness

Avoiding Malicious Recruitment Tactics

• Researchers at Reversing Labs have identified campaigns by the Lazarus Group targeting developers with fake coding tests.
• These tests often contain malware hidden in opaque PYC files.
• Experts recommend:
• Using isolated environments like Docker or virtual machines with snapshots.
• Relying on established interview platforms rather than running local scripts provided by unknown entities.

Community and Python Ecosystem Updates

PSF and Open Source Initiatives

• The PSF Board has launched monthly Office Hours to increase accessibility and receive community feedback.
Humble Bundle is currently hosting a major charity event featuring a wide range of top-tier Python courses.
Django Not has opened applications for its third session, focusing on mentoring new contributors for the project.

Tools and Odds & Ends

"Self-update is such an awesome thing. I wish I had Brian self-update."
AltTab for macOS is highlighted as a superior window-switching utility.
macOS Sequoia is now available for users on the cutting edge.
uv now includes support for Python 3.13.

Topics

Chapters

7 chapters
Python Bytes
AI chat — answers grounded in episodes