Python Hub Weekly Digest This week in Python, the PyBay 2025 and DjangoCon US 2025 talk videos were released. Interesting articles included an explanation on building an LLM agent, an overview of module compression in Python 3.14, and the speed improvements in CPython 3.15. Django Admin Deux, a modern replacement for Django's default admin interface, was introduced. The article "How often does Python allocate?" explored Python's memory allocation. The django-allauth package fixed seven vulnerabilities in version 65.13.0. Lastly, projects like DjangoRealtime and Harbor, a framework for optimizing agents and language models, were highlighted. Have a great week and happy coding!
PyBay 2025 Videos
The talk videos from PyBay 2025 are now available.
Python Hub Weekly Digest for 2025-11-16
You Should Write An Agent
The post explains that building a simple LLM agent, an app that maintains context, calls the model, and uses tools, is surprisingly easy and educational. It highlights that the real challenge is context engineering, such as managing what information to keep or summarize and how to integrate external tools, and encourages everyone to try building one to understand the technology deeply.
Module compression overview
A high-level overview of how to use the module compression, new in Python 3.14.
Decompression is up to 30% faster in CPython 3.15
CPython 3.15 introduces significant improvements in decompression speed: Zstandard (zstd) decompression is now up to 25–30% faster, and zlib decompression is 10–15% faster for data larger than 1 MiB. These gains result from optimizations in the handling of output buffers during decompression.
Build better software to build software better
The article from Slack Engineering describes how Slack improved their build pipeline by applying classic software engineering principles combined with high-performance build tooling (Bazel). They restructured their build system by separating concerns, modeling builds as graphs of well-defined work units, and leveraging caching and parallelization, which resulted in builds running up to s...
Django Admin Deux: Bringing Django's Admin Back to Django
Django Admin Deux is a modern, extensible replacement for Django’s default admin interface, featuring a factory pattern architecture and a robust plugin system. It aims to make customizing and extending the admin UI much easier, bringing new capabilities and flexibility to Django project administration.
How often does Python allocate?
The article explores how frequently Python allocates memory, focusing on the integer type implementation. It finds that CPython allocates new memory objects often but mitigates overhead by reusing objects from a freelist and employing a specialized pool allocator; nonetheless, Python's integer handling still incurs considerably more allocation overhead than the single CPU ADD instruction...
Why Your Code Isn’t Pythonic (And How to Fix It)
The video explains what “Pythonic” code means, refactoring a messy script step-by-step to demonstrate idiomatic Python practices like using functions over classes, dataclasses for structure, context managers, type annotations, EAFP error handling, pathlib, logging, and organizing code in a main function. The core message is that Pythonic code favors simplicity, readability, and leveragin...
7 vulnerabilities in django-allauth enabling account impersonation and token abuse
The django-allauth package had seven vulnerabilities, including four major ones that enabled account impersonation by exploiting mutable or non-unique identifiers from Okta and NetIQ, token refresh for deactivated users, and unverified email acceptance from Notion. These flaws could allow attackers to impersonate users and abuse tokens, but all have been fixed in version 65.13.0.
DjangoCon US 2025 Videos
The talk videos from DjangoCon US 2025 are now available.
Using Vite with Vue and Django
Learn how we integrate Vue and Django for a bullet proof deployment.
The “Dependency Cutout” Workflow Pattern, Part I
The "Dependency Cutout" workflow pattern provides a structured way to temporarily rely on a patched version of an open source dependency without permanently forking it. It involves forking the dependency, applying urgent fixes for your application, using this modified version in production, and then upstreaming the fix and unwinding back to the official release once your patch has been m...
Archimedes – A Python toolkit for hardware engineering
Z3 API in Python: From Sudoku to N-Queens in Under 20 Lines
Celtic Code: Drawing Knots with Python
DjangoRealtime
Realtime browser events for Django + PostgreSQL.
A Plan for 5-10%* Faster Free-Threaded JIT by Python 3.16
The plan for CPython's Free-Threaded JIT aims to achieve a 5% speedup by Python 3.15 and 10% by 3.16 through incremental optimizations. Improvements include better profiling and debugger support via LLVM, enhanced region selection and codegen, register allocation, reference counting optimizations, and more advanced JIT techniques—all contributing to a faster, more production-ready JIT in...
Harbor
Harbor is a framework from the creators of Terminal-Bench for evaluating and optimizing agents and language models.
any-llm
Communicate with an LLM provider using a single interface.
httpmorph
httpmorph is a drop-in replacement for Python's requests library that uses a custom C implementation with BoringSSL instead of Python's standard HTTP stack.
fastapi-voyager
Visualize your FastAPI endpoints, and explore them interactively.
Memori
An open-source SQL-Native memory engine for AI.
The great leap forward: Python 2.7 -> 3.12, Django 1.11 -> 5.2
Pydantic and the path to enlightenment
Ultra-strict Python template v2 (uv + ruff + basedpyright)
Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.