PythonHub
2.49K subscribers
2.35K photos
49.9K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Pydantic AI - Intro to Agentic AI with Pydantic AI framework

We'll look at using Pydantic AI to build agent-based workflows, starting with simple fundamentals, and building up to more complex examples that use vector databases, RAG, multi-agent workflows and more.

https://www.youtube.com/playlist?list=PL-2EBeDYMIbSWGoDzOFm33_5W_ShO-VIi
Fixed Python autocomplete

The post suggests that heavy LSP and static analysis approaches are unnecessary for many common autocomplete scenarios. It shows a lightweight, pattern-based approach can deliver faster, more responsive suggestions without full semantic analysis.

https://matan-h.com/better-python-autocomplete
How Clean Code Turns Into Overengineering

This video is about how code that looks clean can still hide a bad design, and why overusing tiny abstractions can make a program harder to understand and change. It refactors a Python reporting example by simplifying the structure, making the pipeline explicit, and focusing on cohesion over smallness.

https://www.youtube.com/watch?v=U4sPMwAiXco
Why pylock.toml includes digital attestations

Including digital attestations in pylock.toml allows developers to verify the origin and integrity of dependencies, not just their versions and hashes, improving protection against supply chain attacks. The broader point is that modern package security requires provenance, not just reproducibility, so lock files are evolving from “what to install” into “what can be trusted to install.”

https://snarky.ca/why-pylock-toml-includes-digital-attestations/
NumPy as Synth Engine

NumPy can be used as a real time sound synthesis engine, generating all audio directly from mathematical functions like waves, noise, and filters without any pre recorded samples. The broader idea is that powerful general purpose tools like NumPy can be pushed far beyond their intended use, enabling complex systems like music generation through pure computation.

https://kennethreitz.org/essays/2026-03-29-numpy_as_synth_engine
Autograd and Mutation

How does PyTorch autograd deal with mutation? In particular, what happens when a mutation occurs on a view, which aliases with some other tensor? In 2017, Sam Gross implemented support for in-place operations on views, but the details of which have never been described in plain English… until now.

https://blog.ezyang.com/2026/03/autograd-and-mutation/
From zero to a RAG system: successes and failures

Building a production RAG system is far more about data pipelines, indexing strategy, and infrastructure tradeoffs than model choice, with most failures coming from scaling, retrieval quality, and compute constraints. The key lesson is that RAG success depends on iterative engineering and system design discipline, not just plugging in an LLM, with real-world performance shaped by bottlen...

https://en.andros.dev/blog/aa31d744/from-zero-to-a-rag-system-successes-and-failures/