PythonHub
2.44K subscribers
2.35K photos
49.6K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Gunicorn Internals

This blog is a technical case of the Gunicorn source code.

https://humbulani1234.github.io/blog/
👎1
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.

https://www.youtube.com/watch?v=GztJ1h6ZXA0
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...

https://www.tensoreconomics.com/p/ai-infrastructure-in-the-era-of-experience
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...

https://www.youtube.com/watch?v=wu8npoU37cI
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.

https://blog.appsignal.com/2025/12/03/improve-query-performance-using-django-python-querysets.html
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...

https://roam.be/notes/2025/a-first-look-at-djangos-new-background-tasks/
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...

https://sankalp.bearblog.dev/how-prompt-caching-works
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 ...

https://wesmckinney.com/blog/llms-arithmetic/
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.

https://lincolnloop.com/blog/modernising-django-packages-without-breaking-everything/
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 ...

https://www.djangoproject.com/weblog/2025/dec/03/django-60-released/
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.

https://www.youtube.com/watch?v=nMnQ63YkftE
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...

https://www.youtube.com/watch?v=Xhzn1eAxoXk