Python Updates: Django 4, Py Launcher & AI Transformers

·40m 25s
Shared point

Django 4.0 and Testing

Django 4.0 Highlights

• Django 4.0 beta 1 is officially out, with a strict requirement for Python 3.8+.
• Key features include functional unique constraints, a new scrypt password hasher, and a built-in Redis cache integration.
• Improvements in template-based form rendering offer enhanced customization.

Model Bakery for Testing

Model Bakery introduces smart fixtures for Django, streamlining the creation of ORM models.
• It simplifies model-to-model relationships and handles data population for test scenarios effectively.

Developer Tools & Environment

The Py Launcher

• The Py Launcher allows developers to manage Python versions seamlessly across platforms like macOS and Linux.
• It eliminates the need for manual path management and virtual environment activation, as the launcher automatically detects the environment from the file structure.

Coverage Goals

• Ned Batchelder’s goals.py provides a flexible way to enforce coverage thresholds at a granular level.
• It allows developers to define specific percentage requirements for different sections of their codebase, improving CI/CD reliability.

Machine Learning & AI

Transformers in AI

• The State of AI Report 2021 highlights how transformers are evolving beyond NLP to impact audio, video processing, and protein structure prediction.
• Hugging Face remains a dominant library, now with deep AWS integration, enabling complex data modeling for research and commercial applications.

Blockchain Development

Web3.py provides a native Python interface for interacting with the Ethereum blockchain.
• It enables developers to build smart contracts and manage digital assets, bridging traditional coding with the DeFi ecosystem.

"I think machine learning and like recommendation engines have good sides and bad sides... On the medical side, it seems like it's mostly good."

Topics

Chapters

7 chapters
Python Bytes
AI chat — answers grounded in episodes