PythonHub Logo Python Hub Weekly Digest for 2025-07-13

This week in Python, popular topics included a guide on application logging in Python, building a simple HTTP server with asyncio protocols, and reading NFC passport chips in Linux. There was also a discussion on the relevance of Python's dataclasses in 2025, and the introduction of a Python API for YouTube transcript retrieval. Interesting articles covered topics like statically checking Python dicts, combining uv and PEP 723 for self-contained Python scripts, and optimizing Django performance. Projects of note included a CLI tool for developing GPU kernels, an API for the AlphaGenome model, and a modern Django admin dashboard, OctopusDash. Happy coding and have a great week!

đź’– Most Popular

Application Logging in Python: Recipes for Observability
The guide explains how to build robust, production-grade logging in Python by moving beyond basic print statements to use the logging module’s loggers, handlers, formatters, and filters for structured, contextual, and queryable logs. It covers best practices like configuring loggers by module name, using YAML or dictConfig for centralized setup, and adopting JSON output for modern observ...

Making a Simple HTTP Server with Asyncio Protocols
Learn how to build a fast, minimal HTTP server using asyncio.Protocol, complete with routing, parsing, and response handling from scratch!

Reading NFC Passport Chips in Linux
The article explains how to read all data, including biometrics, from an NFC passport chip on Linux using the pypassport tool, detailing the process of reconstructing the required MRZ (Machine Readable Zone) password from passport details and providing Python code for both MRZ generation and chip reading

It Seems I No Longer Use Python’s Dataclasses
The video explores whether Python’s built-in dataclasses are still useful in 2025, given the rise of tools like Pydantic, FastAPI, and SQLAlchemy, concluding that most production code now relies on specialized data structures from these libraries rather than standard dataclasses. However, the presenter still finds dataclasses valuable for rapid prototyping and domain modeling, as they of...

jdepoix / youtube-transcript-api
This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!


đź“– Articles

Statically checking Python dicts for completeness
A Pythonic way to ensure that your statically-defined dicts are complete, with full source code.

MicroPython on M68k Mac

Fun with uv and PEP 723
The article demonstrates how combining the new Python package manager uv with PEP 723 allows you to write self-contained Python scripts that declare and manage their own dependencies using inline metadata, making one-off scripting much easier and more portable. It showcases practical examples, such as running scripts with uv run and creating executable scripts that fetch YouTube transcri...

Django: Introducing inline-snapshot-django
The article introduces inline-snapshot-django, a new Django package for snapshot testing SQL queries, allowing developers to automatically capture and compare query outputs in their tests. It aims to provide a more detailed and developer-friendly alternative to Django’s assertNumQueries(), making it easier to debug and maintain test suites for database interactions.

Speed Up Django Queries with values() over only()
Optimizing Django performance? Use values() instead of only() when you only need specific fields, as it skips full model instantiation and avoids triggering deferred field lookups—boosting query efficiency. The article provides practical guidance on when to choose values() for lightweight data access.

Build a Podcast Discovery Web App in Pure Python
The video is a step-by-step tutorial on building a full-stack podcast discovery web app using only Python, leveraging the Reflex framework for both frontend and backend development. It demonstrates integrating user authentication with Clerk, database management with Postgres, and data validation with Pydantic, showing how modern Python tools can be combined to create interactive, product...

Leveraging Google Adk For Cyber Intelligence
The article details how Google Cloud's Agent Development Kit (ADK) enables the creation of autonomous, multi-agent cybersecurity systems like CyberGuardian, which coordinate specialized agents for real-time threat detection, analysis, containment, and automated recovery.

Switching pip to uv in a Dockerized Flask / Django App
Switching from pip to uv in Dockerized Flask or Django apps results in about a 10x faster dependency installation and introduces robust, lockfile-based dependency management, improving both speed and reliability. The process involves replacing requirements.txt with pyproject.toml, adjusting Dockerfiles to use uv commands, and configuring environment variables for efficient, reproducible ...

HKUDS / AutoAgent
"AutoAgent: Fully-Automated and Zero-Code LLM Agent Framework"

facebookresearch / vggt
[CVPR 2025 Best Paper Award] VGGT: Visual Geometry Grounded Transformer

Fast Thermodynamic Calculations in Python

Python Hub Weekly Digest for 2025-07-06


⚙️ Projects

chisel
CLI tool for developing and profiling GPU kernels locally. Just write, test, and profile GPU code from your laptop.

Spegel
Automatically rewrites the websites into markdown optimised for viewing in the terminal.

AlphaGenome
This API provides programmatic access to the AlphaGenome model developed by Google DeepMind.

Python for Nonprofits
Python For Nonprofits demonstrates how to use Python to retrieve, analyze, visualize, and share nonprofit data.

force-push-scanner
Scan for secrets in dangling commits on GitHub using GH Archive data.

TreeQuest
A Tree Search Library with Flexible API for LLM Inference-Time Scaling.

genai-bench
Genai-bench is a powerful benchmark tool designed for comprehensive token-level performance evaluation of large language model (LLM) serving systems.

Kajson
Universal JSON Encoder/Decoder for Python.

django-rls
PostgreSQL Row Level Security for Django.

OctopusDash
OctopusDash is a modern, open-source Django admin dashboard designed with a beautiful UI, powerful filtering, and granular permission control — crafted for developers and teams seeking more flexibility, clarity, and extensibility beyond the default Django admin.

rl-swarm
A fully open source framework for creating RL training swarms over the internet.


👾 Reddits

The logging module is from 2002. Here's how to use it in 2025

The one FastAPI boilerplate to rule them all

PhotoshopAPI: 20Ă— Faster Headless PSD Automation & Full Smart Object Control (No Photoshop Required)


← Previous

Project by Ruslan Keba. Since 2012. Powered by Python. Made in đź‡şđź‡¦Ukraine.