PythonHub
2.44K subscribers
2.35K photos
49.5K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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.

https://fly.io/blog/everyone-write-an-agent/
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.

https://emma.has-a.blog/articles/django-admin-deux-bringing-admin-back-to-django.html
Archimedes – A Python toolkit for hardware engineering

https://pinetreelabs.github.io/archimedes/blog/2025/introduction.html
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...

https://www.youtube.com/watch?v=bsU7AFjh4m8
Harbor

Harbor is a framework from the creators of Terminal-Bench for evaluating and optimizing agents and language models.

https://github.com/laude-institute/harbor
👍1
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...

https://slack.engineering/build-better-software-to-build-software-better
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.

https://emmatyping.dev/decompression-is-up-to-30-faster-in-cpython-315.html
Celtic Code: Drawing Knots with Python

https://2earth.github.io/website/20250202.html
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...

https://zackoverflow.dev/writing/how-often-does-python-allocate
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.

https://zeropath.com/blog/django-allauth-account-takeover-vulnerabilities