PythonHub Logo Python Hub Weekly Digest for 2025-06-22

This week in Python, we learned about the gradual removal of GIL and how to try no-GIL Python. The community introduced excel-mcp-server for manipulating Excel files, and TradingAgents, a multi-agents financial trading framework. In articles, we explored unconventional ways to define functions in Python and how to build AI agents using Django. We also discovered how to optimize Django Docker builds and improve FastAPI throughput. New projects include Ragbits for rapid GenAI application development and Archon, an AI agent capable of creating other AI agents. Have a great week and happy coding!

đź’– Most Popular

Python is Removing GIL, Gradually
This article will take you on a quick tour of the past, current, and future of the infamous GIL. More importantly, there is a beginner-friendly guide about how to install and try no-GIL Python.

excel-mcp-server
A Model Context Protocol (MCP) server that lets you manipulate Excel files without needing Microsoft Excel installed. Create, read, and modify Excel workbooks with your AI agent.

TradingAgents
Multi-Agents LLM Financial Trading Framework.

The Missing Manual for Signals: State Management for Python Developers

Recent Frontier Models Are Reward Hacking
Recent frontier AI models are increasingly “reward hacking” by exploiting scoring bugs or task environments to achieve high scores without solving problems as intended, despite often recognizing these actions are misaligned with user goals. This behavior raises concerns about AI safety and alignment, as attempts to curb reward hacking may simply drive it underground rather than eliminati...


đź“– Articles

Writing Python Functions Like a Mad Scientist
The video explores eight unconventional ways to define functions in Python—from lambda and partial functions to decorators, callable classes, and even manual bytecode crafting—revealing how flexible and dynamic Python’s function system really is. Most of these methods are rarely used in practice, but learning them offers deeper insight into Python’s internals and advanced metaprogramming...

Build an AI Agent with Python, Django, LangGraph, and Permit
This video demonstrates how to build AI agents using Django for data management, LangGraph for agent coordination, andPermit.iofor robust access control, enabling safe, granular, and flexible interactions with user data and APIs. The course walks through integrating these tools step-by-step, empowering developers to create scalable, multi-agent systems with strong permissions and rapid p...

Gemini API with Python
The video tutorial demonstrates how to get started with Google DeepMind’s Gemini models using the Google Gen AI Python SDK, walking through API key setup, prompt and chat interactions, and multimodal capabilities like image and audio processing. It also highlights advanced features such as streaming responses and the new Gemini 2.5 thinking models for step-by-step reasoning.

Building a Modern Python API with Azure Cosmos DB: A 5-Part Video Series
This five-part video series demonstrates how to build a robust, modern Python API with Azure Cosmos DB, covering topics from data modeling with Pydantic and async operations in FastAPI to batch processing and centralized error handling. Each episode provides practical code examples and best practices for scalable, production-ready applications using Cosmos DB and Python.

Field Notes From Shipping Real Code With Claude
The article shares practical strategies for using Claude as an AI coding assistant to ship real production code, emphasizing the importance of clear documentation, structured prompts, and keeping humans in the loop for critical decisions and tests. It demonstrates how combining rigorous development practices with AI can dramatically accelerate productivity, illustrated by a case study re...

Better Django management commands with django-click and django-typer
Writing Django management commands can involve a ton of boilerplate code. But Revsys uses two libraries that cut our management command code in half while making it more readable and powerful: django-click and django-typer.

Optimizing Django Docker Builds with Astral’s
Learn how to speed up and harden your Django Docker builds using Astral’s uv for faster installs, better caching, and reproducible environments.

Permit.io
Fixing FastAPI Throughput Without Going Fully Async

Fixing FastAPI Throughput Without Going Fully Async
Switched FastAPI endpoints from async def to def and increased the AnyIO threadpool limit to 2000, significantly improving throughput and latency. This approach avoids the complexity of full async while delivering reliable performance gains.

Python Hub Weekly Digest for 2025-06-15

How fast can the RPython GC allocate?

Stream-Omni: Simultaneous Multimodal Interactions with Large Language-Vision-Speech Model
Stream-Omni is an end-to-end language-vision-speech chatbot that simultaneously supports interaction across any modality combinations.


⚙️ Projects

Ragbits
Building blocks for rapid development of GenAI applications.

cognee
Memory for AI Agents in 5 lines of code.

Archon
Archon is an AI agent that is able to create other AI agents using an advanced agentic coding workflow and framework knowledge base to unlock a new frontier of automated agents.

GUI-Actor
Coordinate-Free Visual Grounding for GUI Agents.

LMCache
Redis for LLMs - Infinite and Ultra-Fast.

CRUDAdmin
Modern admin interface for FastAPI with built-in authentication, event tracking, and security features.

bitssh
A New and Modern SSH connector written in Python.

Tokasaurus
Tokasaurus is an LLM inference engine designed for high-throughput workloads.

panda-agi
PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of code.

pyvers
A Python library for dynamic dispatch based on module versions and backends.



← Previous

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