PythonHub
2.64K subscribers
2.35K photos
50.5K links
Human-curated Python news, projects, articles & tools.

https://pythonhub.dev/
Download Telegram
Nifty Django Feature: Q() Objects

Part of the Nifty Django features series: Django’s Q() objects allow you to some fancy filtering!

https://www.better-simple.com/django/2026/09/09/nifty-feature-q-objects/
Plugin Architecture Across Service Boundaries: An API Contract with Pydantic & FastAPI - Pt. 1

This articles shows how to build a service-level plugin architecture with Pydantic and FastAPI. I will be using an API contract package that plugin providers implement and our platform validates the contract during registration.

https://patrickm.de/plugin-architecture-across-service-boundaries-an-api-contract-with-pydantic-fastapi-pt-1/
guardlist: a list that raises an error when modified during iteration

Python protects dicts and sets from mutation during iteration, but not lists. GuardedList fills that gap with a clear error.

https://pypi.org/project/guardlist/
Playing with a Badgeware Badger

Ben Tasker shares his experience customizing the Badgeware Badger—a Raspberry Pi RP2350-powered e-ink name badge running MicroPython. He details troubleshooting image formatting, color-depth, and font sizing issues to display his custom avatar, a Fediverse social handle, and logo on the device.

https://www.bentasker.co.uk/posts/blog/general/playing-with-an-eink-badge.html
Jitter is the cheapest reliability fix you are not using

Distributed systems synchronise themselves without being told to: every client that retries on a fixed interval, restarts after a deploy, or reconnects after a network blip ends up firing at the same moment as every other client. The resulting spike is a self-inflicted denial of service that no single component is responsible for. Adding randomness to any repeating interval breaks the al...

https://ankit-rana.com/logs/49-jitter-synchronised-clients/
Django: serve the change password well-known URL

Adam Johnson explains how to implement the standard /.well-known/change-password URL redirect in Django using RedirectView, helping password managers direct users to their password change pages. He also covers testing the endpoint, checking for server misconfigurations that could interfere with password managers, and setting the correct autocomplete attributes on password fields.

https://adamj.eu/tech/2026/09/16/django-change-password-url/
Rapidly scaling online storage to serve over 1 billion ChatGPT users

Learn how OpenAI evolved Habitat from a Python library into a globally distributed storage platform serving 1 billion ChatGPT users and 22M requests per second.

https://openai.com/index/scaling-storage-one-billion-users-part-one/
Pandas Should Go Extinct

Eddie Atkinson makes the case that many teams move from Pandas to distributed systems too early, when single-machine tools like Polars and DuckDB can handle much larger analytical workloads with significantly better performance and memory efficiency in his benchmarks. He highlights lazy execution, multithreading, streaming, spill-to-disk, and Arrow interoperability as reasons these tools...

https://eddie.codes/posts/pandas-should-go-extinct/
Agents Without Code: Skills, YAML, and Filesystems Replaced Python

Philipp Schmid demonstrates how improving LLM capabilities allow developers to replace complex Python agent orchestration with simple instructions and skill files (AGENTS.md and SKILL.md) running inside hosted sandboxes. By building the same GitHub pull request review agent three times, he shows why developers should simplify agent architectures, rely on general-purpose tools, and focus ...

https://www.youtube.com/watch?v=fjF8EKnxKCU
❤1
There are only twelve 4x4 sudokus - and a cool trick for finding minimal subsets

The article explores 4×4 Sudoku, showing that there are 288 valid solutions, which reduce to just 12 structurally distinct grids when digit permutations are ignored. Using Python brute force and a clever bitmask technique for checking minimal subsets, the author identifies 85,632 minimal puzzles (3,568 up to digit permutations), each with a unique solution that becomes non-unique if any ...

https://baldino.dev/blog/there-are-only-twelve-4x4-sudokus/