PythonHub Logo Python Hub Weekly Digest for 2025-08-10

This week in Python, the popular project Copyparty allows any device to become a file server with resumable uploads/downloads. Armin Ronacher revisits his critique of async/await in Python, proposing a simpler concurrency model. A tutorial on creating a terminal-based XML editor using Python and the Textual and lxml libraries was featured. A new Python toolkit for semi-automated assembly verification was introduced. Netflix's Metaflow team shared their scalable ML infrastructure using Python. Lastly, a Python generator function for traversing Django’s URLResolver structure was demonstrated. Have a great week and happy coding!

💖 Most Popular

copyparty
Turn almost any device into a file server with resumable uploads/downloads using any web browser.

From Async/Await to Virtual Threads
Armin Ronacher revisits his earlier critique of async/await in Python, arguing for a simpler and more composable concurrency model built around structured, virtual threads that avoid colored functions and simplify cancellation and context passing. He proposes rethinking Python’s concurrency by embracing thread-first APIs with virtual thread groups, which can yield, cancel, and propagate ...

Creating a Simple XML Editor in Your Terminal with Python and Textual
The article explains how to build a simple terminal-based XML editor in Python using the Textual and lxml libraries, featuring a recent files list, file browser, XML tree viewer, node editing, and preview screens. The tutorial provides modular design, handling for adding nodes and editing XML content interactively, with each UI component styled via CSS for usability and clarity.

9 Signs You’re Writing Java in Python

Stop Using Django's squashmigrations: There's a Better Way
Squashing Django migrations often breaks or complicates projects, especially when all environments are under your control. A clean reset by deleting old migrations, generating new ones, and faking migration history is a simpler and more reliable approach.


📖 Articles

Semi-Automated Assembly Verification in Python using pypcode Semantics
Philip Zucker introduces a Python toolkit that lets users add verification annotations directly to assembly code using macros, enabling semi-automated proof of correct assembly behavior via pypcode, which supports portable, architecture-agnostic analysis. This approach keeps formal verification practical and accessible for real-world low-level programming.

Executing arbitrary Python code from a comment
The article explains how, in a CTF challenge, seemingly harmless Python code that only allows user input in a comment can actually be exploited for arbitrary code execution by constructing a valid ZIP file within the comment and leveraging Python's ability to run ZIP archives. By carefully crafting an ASCII-safe ZIP archive (with a main.py), even restrictive single-line comments can trig...

Design patterns you should unlearn in Python

metap: A Meta-Programming Layer for Python
metap is a new Python meta-programming layer that supports program augmentation, user-defined code generation, and structural introspection. It allows developers to automate coding patterns, extend Python with customizable macros, and have code inspect and enforce its own structure, improving maintainability and correctness. Unlike Python’s built-in tools, metap offers a unified, extensi...

Netflix ML Infra: Stop Bottlenecks! Scale Python Like Never Before
Netflix’s Metaflow team built a scalable ML infrastructure using Python to support use cases like recommendations and content modeling while boosting developer productivity. Their design focuses on reducing cognitive load by improving data handling, dependency management, and environment isolation so engineers can focus on ML instead of infrastructure.

The Builder Pattern in Python: Finally Explained!
In this video, the Builder Pattern in Python is demonstrated. This practical and often underrated design pattern is likely already in use without being recognized. It enables step-by-step construction of complex objects using a clean, fluent API, helping avoid bulky constructors and fragile nested dictionaries. A hands-on example of generating an HTML UI is included, along with guidance ...

Enterprise AI Tutorial – Embeddings, RAG, and Multimodal Agents Using Amazon Nova and Bedrock
Amazon Nova’s course teaches Embeddings, RAG, Multimodal Models, and Agents using tools like Bedrock, LangChain, and Titan Embeddings to build real-world AI applications. You’ll learn to automate workflows like insurance claims by integrating Bedrock Agents and Knowledge Bases for smarter, faster customer service.

Benchmarking MicroPython

Django: iterate through all registered URL patterns
Adam Johnson demonstrates a Python generator function that recursively traverses Django’s URLResolver structure to enumerate all registered URLPattern objects, including those in nested namespaces. He shows how this can be used for tasks like auditing registered views or writing tests to ensure all class-based views inherit from a specific base class.

asyncio: a library with too many sharp corners
An explanation of some major issues with asyncio.

Nullable but not null
The article highlights that leaving database fields as nullable after they've been fully filled creates an inaccurate schema, leading to confusion and unnecessary complexity. It recommends scanning for fields that are nullable in the schema but never actually contain null values, and then making them non-nullable to ensure your database enforces the correct constraints and improves data ...

We built the security layer MCP always needed
Trail of Bits released mcp-context-protector, a wrapper that secures MCP-based LLM tools by sanitizing inputs, verifying configs, and blocking prompt injection. It acts as a proxy, requiring no changes to servers or client apps.

Python Hub Weekly Digest for 2025-08-03

How Python grew from a language to a community


⚙️ Projects

Uvify
Turn python repositories to environments and oneliners with uv python manager, without diving into the code.

LangExtract
A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.

abogen
Generate audiobooks from EPUBs, PDFs and text with synchronized captions.

awesome-claude-code
A curated list of awesome commands, files, and workflows for Claude Code.

CCPlugins
Claude Code Plugins that actually save time. Built by a dev tired of typing please act like a senior engineer in every conversation.

multiplex
Multiplex is a command-line multiplexer along with a simple Python API to run multiple processes in parallel and stop them all at once, or based on some condition.

Erys
Terminal Interface for Jupyter Notebooks.

Vulnhuntr
Zero shot vulnerability discovery using LLMs.


👾 Reddits

I think I have to admit I'm confused by how to correctly use uv


← Previous

Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.