News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
dnsimg - storing images in txt records
The author experiments with storing images in DNS TXT records by converting image data to hex, splitting it into 2048-character chunks, and creating a protocol-like method for retrieval and reconstruction. The process demonstrates both the feasibility and practical limitations of this approach, including DNS record size constraints and the need for custom scripts to upload, fetch, and re...
https://asherfalcon.com/blog/posts/2
Python can run Mojo now
The post explores how Python can now call Mojo code, offering a promising way to speed up Python functions with a simple compiled language. While still early and showing some rough edges like overflow issues, Mojo demonstrates significant performance gains in examples like prime counting, making it an exciting tool for Python developers seeking faster execution.
https://koaning.io/posts/giving-mojo-a-spin/
ML-GSAI / LLaDA
Official PyTorch implementation for "Large Language Diffusion Models"
https://github.com/ML-GSAI/LLaDA
Premier
A Flexible, Lightweight API-Gateway written in python that can be used as an ASGI middleware, app, or decorators.
https://github.com/raceychan/premier
How to Write the Worst Possible Python Code (Humor)
https://effective-programmer.com/how-to-write-the-worst-possible-python-code-8c6e49816e90?sk=d06d4241ce97a51a969fbce67070f8ba
bitssh
A New and Modern SSH connector written in Python.
https://github.com/Mr-Sunglasses/bitssh
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.
https://github.com/coleam00/Archon
pyvers
A Python library for dynamic dispatch based on module versions and backends.
https://github.com/vmoens/pyvers
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.
https://rob.cogit8.org/posts/optimizing-django-docker-builds-with-astrals-uv/
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.
https://dpdzero.com/blogs/fixing-fastapi-throughput-without-going-fully-async/
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.
https://github.com/haris-musa/excel-mcp-server
cognee
Memory for AI Agents in 5 lines of code.
https://github.com/topoteretes/cognee
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.
https://www.revsys.com/tidbits/better-django-management-commands-with-django-click-and-django-typer/
Ragbits
Building blocks for rapid development of GenAI applications.
https://github.com/deepsense-ai/ragbits
The Missing Manual for Signals: State Management for Python Developers
https://bui.app/the-missing-manual-for-signals-state-management-for-python-developers/
What ever happened to "Zope"?!
https://www.reddit.com/r/Python/comments/1l9furl/what_ever_happened_to_zope/
Programming Language Design in the Era of LLMs: A Return to Mediocrity?
The article argues that the rise of LLMs is making it less appealing to design new domain-specific languages (DSLs), since LLMs excel at generating code in popular languages like Python but struggle with niche DSLs. It explores how language designers might adapt by teaching LLMs about DSLs, integrating informal and formal workflows, and focusing on verified specification languages, but w...
https://kirancodes.me/posts/log-lang-design-llms.html
The fastest way to detect a vowel in a string
The author explores 11 different methods for detecting vowels in a string using Python, benchmarking their performance and analyzing their underlying implementation, including Python bytecode and regex internals. The results show that for short strings, a simple loop is fastest, but for longer strings, regex-based approaches outperform others due to their optimized C-level implementation...
https://austinhenley.com/blog/vowels.html
The GIL is actually going away — Have you tried a no-GIL Python?
https://www.reddit.com/r/Python/comments/1lccbj2/the_gil_is_actually_going_away_have_you_tried_a/
Python Hub Weekly Digest for 2025-06-22
https://pythonhub.dev/digest/2025-06-22/
CRUDAdmin
Modern admin interface for FastAPI with built-in authentication, event tracking, and security features.
https://github.com/benavlabs/crudadmin
How fast can the RPython GC allocate?
https://pypy.org/posts/2025/06/rpython-gc-allocation-speed.html
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...
https://metr.org/blog/2025-06-05-recent-reward-hacking/
panda-agi
PandaAGI provides a simple, intuitive API for building general AI agents in just a few lines of code.
https://github.com/sinaptik-ai/panda-agi
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.
https://www.youtube.com/watch?v=qfWpPEgea2A
LMCache
Redis for LLMs - Infinite and Ultra-Fast.
https://github.com/LMCache/LMCache
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...
https://www.youtube.com/watch?v=OdDI-5PBpSk
GUI-Actor
Coordinate-Free Visual Grounding for GUI Agents.
https://github.com/microsoft/GUI-Actor
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...
https://diwank.space/field-notes-from-shipping-real-code-with-claude
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.
https://medium.com/techtofreedom/python-is-removing-gil-gradually-b41274fa62a4?sk=9fa946e23efca96e9c31ac2692ffa029