PythonHub
2.63K subscribers
2.35K photos
50.4K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Origintracer

A low-level asynchronous web framework observability system. The system can trace nginx, gunicorn, Uvicorn, django and celery.

https://origintracer.app/docs/
When str.lower() is a security vulnerability in Python

A Python security vulnerability caused IDNA 2003 handling to use the interpreter’s current Unicode case-folding rules instead of the Unicode 3.2 rules required by the specification.The fix makes Python’s case-folding behavior match Unicode 3.2 for StringPrep, restoring standards-compliant IDNA encoding and addressing CVE-2026-17084.

https://sethmlarson.dev/when-str-lower-is-a-security-vulnerability
The Mullet Stack - JavaScript in the front, Python in the back.

This is a practical guide to building a modern full-stack application with FastAPI and Pydantic on the Python backend and React and TypeScript on the frontend. It explores how their different type systems work together and shows how generating frontend types from FastAPI’s OpenAPI schema prevents backend and frontend models from drifting apart.

https://seanhelvey.com/mullet-stack/guide/
What's missing to have reproducible builds on PyPI

The article explores what Python packaging is missing to support reproducible builds on PyPI, allowing third parties to verify that distributions match their source code and haven't been tampered with. It proposes recording source information and build tools, using SBOMs, and having trusted verifiers report successfully reproduced packages back to PyPI.

https://snarky.ca/whats-missing-to-have-reproducible-builds-on-pypi/
Python's pre-declared constants are kinda weird

https://sebsite.pw/w/20260801-pythonconstants.html
EuroPython 2026 Videos

The videos from the EuroPython 2026 talks are now available.

https://www.youtube.com/playlist?list=PLd3Y9yzyC5Uo
JupyterGIS 0.16: New visualization capabilities, collaborative Story Maps, and more

JupyterGIS 0.16 adds richer geospatial visualization with collaborative Story Maps, openEO layers, lazy Xarray rendering, new symbology, and support for GeoZarr and GeoPackage. The release also expands real-time collaboration to vector editing and introduces an R API alongside the existing Python workflow.

https://blog.jupyter.org/jupytergis-0-16-new-visualization-capabilities-collaborative-story-maps-and-more-03e6b78bacc0
Reinforcement Learning for LLMs: The Complete Guide

This is a comprehensive guide to reinforcement learning for LLMs, starting from first principles and building through the policy-gradient algorithms used in modern LLM training. It covers RLHF, verifiable rewards, REINFORCE, PPO, and the newer RL methods being used to improve reasoning, agents, reliability, and efficiency.

https://cameronrwolfe.substack.com/p/llm-rl
DBLift

DBLift is a Python-native database migration toolkit that brings application-style safety to schema changes with validation, dry runs, SQL previews, rollback support, and CI/CD integration.

https://github.com/dblift/dblift
👍1
How to Set Up Python for Machine Learning (The Right Way)

AI-generated ML code can run successfully while still containing subtle mistakes that waste hours or days of training. The video shows how to set up a reliable Python ML workflow with the right tools, validation steps, and verification habits to catch problems before expensive training runs.

https://www.youtube.com/watch?v=cAtKtvmds1o
Nifty Django Feature: Counting on Multiple Columns

Django’s Count expression only works on a single column, which makes counting distinct combinations such as unique pet-vet pairs awkward. A custom CountSubquery shows how Django’s expression system can generate the needed SQL while staying inside the ORM instead of dropping to raw SQL.

https://www.better-simple.com/django/2026/08/19/nifty-feature-counting-on-multiple-columns/
Speculative Programmatic Tool Calling

Speculative programmatic tool calling (sPTC) speeds up AI agent harnesses by pre-launching tool calls from partially generated code instead of waiting for the model to finish generating. The approach overlaps tool execution with token generation and can also parallelize independent calls, acting like a lightweight JIT compiler for agent-generated programs.

https://alexzhang13.github.io/blog/2026/spec-ptc/
Learn Vectorized Thinking in Python Through Examples

In this article, you will learn how to think in terms of vectorized operations using NumPy, replacing slow Python loops with efficient array-level computations.

https://machinelearningmastery.com/learn-vectorized-thinking-in-python-through-examples/