Python Hub Weekly Digest This week in Python news, popular topics included the use of Streamlit for building data visualisations, the application of Dependency Injection in Python, and the release of Django 6.0 with major new features. There was also a discussion on the limitations of large language models (LLMs) in arithmetic tasks. Interesting projects included PyTogether, a collaborative Python IDE, and Claude Quickstarts, a collection of projects for the Claude API. Wishing you a great week ahead and happy coding!
Building Data Visualisations in Python in Minutes
The video demonstrates how to use Streamlit, a Python framework, to quickly build professional and interactive data visualizations with minimal code, showing live examples involving Pandas for data manipulation and visualization. It highlights Streamlit's simplicity, live reloading, interactivity, and caching features, making it ideal for rapid data exploration and sharing within small u...
Stop Hardcoding Everything: Use Dependency Injection
The video explains Dependency Injection (DI) in Python with a practical data pipeline example, showing how DI improves code flexibility, testability, and separation of concerns by injecting dependencies like loaders, transformers, and exporters rather than hardcoding them. It covers manual DI with functions and classes, abstraction with protocols, building a simple DI container, and DI u...
PyTogether: Collaborative lightweight real-time Python IDE for teachers/learners
Can LLMs give us AGI if they are bad at arithmetic?
Wes McKinney's post questions whether large language models (LLMs) can achieve artificial general intelligence (AGI) given their persistent struggles with basic arithmetic tasks like adding single-digit numbers, even in top models. Through experiments and analysis, he shows that while LLMs perform inconsistently on simple math (e.g., summing ~10 numbers), this reveals deeper limitations ...
anthropics / claude-quickstarts
A collection of projects designed to help developers quickly get started with building deployable applications using the Claude API
200 Lines of Python beats $50M supercomputer – Navier-Stokes at Re=10⁸ [pdf]
Can Google's ADK Replace LangChain and MCP?
Christina Lin (Google) demos Agent Development Kit (ADK), open-source Python framework for agentic pipelines: assemble LLMs + tools (via MCP servers/function calling) + prompts for complex workflows like version control or Friday night bookings, with grounding for cited real-time data to cut hallucinations/token costs.
Django 6.0 released
Django 6.0 introduces major new features: built-in support for template partials (for cleaner, reusable templates), a native background-task framework, a built-in Content Security Policy (CSP) system, and a more modern, Unicode-friendly email API. This release marks the end of mainstream support for Django 5.2; developers are encouraged to upgrade to 6.0 to benefit from the new features ...
Gunicorn Internals
This blog is a technical case of the Gunicorn source code.
Keras HyperParameters Tuning
This is an example i provided on the Keras ecosystem.
elf - Advent of Code helper CLI and Python library
elf is a fast and lightweight Advent of Code helper CLI and Python library.
A first look at Django's new background tasks
Django 6.0 introduces django.tasks, a lightweight framework for defining and enqueuing background tasks via a standard API, but lacks built-in workers—requiring external infrastructure like custom database-backed backends. The article builds a demo notification app with a DB backend, worker, retries, and result polling, showing how to implement queuing while noting limitations like no co...
Advanced, Overlooked Python Typing
The article explores advanced Python typing features like assert_never, TypeGuard, and the newer TypeIs, which enable stricter and more precise type narrowing, improving type safety and maintainability in large codebases. It also covers typed function overloading and new syntax improvements in Python 3.13+ that help enforce exhaustive conditionals and accurate type inference for complex ...
Real-Time Tool Call Updates in DSPy with Status Streaming
DSPy's new status streaming feature allows agents to provide real-time updates on their intermediate steps, such as tool calls and LM thinking, to improve user experience during long wait times. This is achieved by using the dspy.streamify wrapper with a custom StatusMessageProvider, which hooks into lifecycle events like tool_start_status_message to show live progress.
Detecting AV1-encoded videos with Python
Building a Real-Time HackerNews Trending Topics Detector with CocoIndex
Automatically turn HackerNews into a real-time, AI-powered trending topics feed — always up to date.
Context Data Platform for Self-learning Agents
One Place for Agents to Store, Observe, and Learn. Designed to simplify context engineering, improve agent reliability and task success rates.
MemoriLabs / Memori
Open-Source Memory Engine for LLMs, AI Agents & Multi-Agent Systems
How prompt caching works - Paged Attention and Automatic Prefix Caching plus practical tips
Prompt caching in large language models (LLMs) is an optimization technique that stores and reuses intermediate computational states (key-value caches) of repeated prompt prefixes, significantly reducing redundant processing and speeding up responses. By breaking prompts into fixed-size token blocks and utilizing a hash-based prefix matching system, prompt caching enables multiple reques...
AI infrastructure in the "Era of experience"
The article analyzes AI infrastructure needs in the "Era of Experience," where RL-trained models interact with proprietary environments, using GRPO for efficient policy optimization and LoRA adapters to enable low-cost training/inference via multi-tenancy and large-batch async RL. It predicts commoditized base models will spawn a reinforcement fine-tuning (RFT) industry for custom models...
Modernising Django Packages Without Breaking Everything
To successfully modernize a mature Django package without breaking user code, the maintainer should phase in new tools to consolidate configuration into a single pyproject.toml file. Key strategies involve streamlining the developer experience with fast tools like uv and Ruff, using a Justfile for memorable commands, and automating releases with Towncrier for clean changelog management.
Improve Query Performance Using Python Django QuerySets
The post shows how efficient Django QuerySet usage can significantly improve database performance, reduce latency, and create faster applications. It explains that writing better queries leads to more stable, scalable, and cost-effective Django systems because the ORM can easily generate unnecessary load when used carelessly.
Setting up a Django project with Vite, React, and Tailwind CSS
The video demonstrates setting up a modern Django project with Vite for frontend builds: create Django app with UV, configure Vite for JS/CSS bundling to Django's staticfiles, integrate django-vite for HMR dev server.
Become an AI Researcher Course – LLM, Math, PyTorch, Neural Networks, Transformers
This comprehensive course on becoming an AI Researcher starts with the foundational mathematics (vectors, derivatives, gradients, matrices) and PyTorch fundamentals necessary for understanding modern AI. It then progresses through the building blocks of neural networks and culminates with an in-depth module on Transformers, the critical technology behind Large Language Models and generat...
Tacopy – Tail Call Optimization for Python
trustedsec / social-engineer-toolkit
The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here.
Python Hub Weekly Digest for 2025-12-07
Nano-PDF
A CLI tool to edit PDF slides using natural language prompts, powered by Google's Gemini 3 Pro Image ("Nano Banana") model.
python-injection
Fast and easy dependency injection framework.
PyPermission
The python RBAC library for projects where SQLAlchemy is a valid option.
Onlymaps
A Python micro-ORM.
llm-council
LLM Council works together to answer your hardest questions.
Raptor
An autonomous offensive/defensive security research framework, based on Claude Code. It empowers security research with agentic workflows and automation.
runprompt
Tiny script to run .prompt files.
vllm-omni
A framework for efficient model inference with omni-modality models.
Is the 79-character limit still in actual (with modern displays)?
Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.