PythonHub
2.61K subscribers
2.35K photos
50.4K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Python: introducing emojet, a fast emoji lookup library

emojet is an emoji library for Python: it converts between emoji and their names, in both directions, plus the searching and lookup functions that go with that. It covers the core API of the emoji package, a library that been available for this job since 2014, using the same names and the same data. The difference is that emojet does the work in Rust, running 3.5x faster for conversion, ...

https://adamj.eu/tech/2026/08/12/python-introducing-emojet/
๐Ÿ‘3
A quick look at zero-knowledge proofs

In this post, the authors break down non-cryptocurrency zero-knowledge proofs (ZKPs) using graph theory and Python. By implementing Protocol 4 from Goldreich, Micali, and Wigderson, they show how a prover uses randomized color permutations, nonces, and cryptographic hashes to iteratively prove they hold a valid 3-coloring for a graph without revealing the actual solution to the verifier.

https://bernsteinbear.com/blog/zkp/
๐Ÿคฏ1
From Routing Checks to Trajectory Testing: Evaluating an Agentic Chatbot

Traditional chatbot testing that checks only final responses misses many agent failures, so this article builds an evaluation framework that progresses from routing checks and task completion to full trajectory testing of tool use, conversations, and intermediate actions. It also shows how to combine LLM-as-a-judge evals, multi-turn testing, and telemetry to debug agent behavior and vali...

https://edcrewe.blogspot.com/2026/08/from-routing-checks-to-trajectory.html
๐Ÿ‘1๐Ÿค”1
Two lines of Python that segfault the interpreter

Two lines of Python could crash CPython 3.14 through 3.16 because SETADD assumed it was always operating on a real set, while PEP 749 madeconditionalannotationsrebindable from Python code. The post explains how that assumption broke, why it caused a type-confusion crash, and why stable releases and the development branch needed different fixes.

https://deadlovelll.github.io/2026-08-10-conditional-annotations-set-add-crash/
โค1
Composite: The Pattern Behind Menus, File Systems and Games

The Composite pattern lets you treat individual objects and entire object hierarchies through the same interface, making tree-like structures much easier to manage. Using a simple Python game engine, the video demonstrates how this pattern naturally applies to game scenes, UI frameworks, file systems, menus, and similar hierarchical designs.

https://www.youtube.com/watch?v=ss6je4-nDx8
โค2๐Ÿ‘1
Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

Numba now runs entirely in the browser through JupyterLite, compiling Python functions to WebAssembly with a new LLVM-based execution engine and delivering substantial performance gains without a server. The work also unlocks browser-native support for the broader Numba ecosystem, including PyMC, PyTensor, and other scientific computing libraries.

https://notebook.link/blog/numba-in-the-browser/
๐Ÿ™2
Prototype on a laptop, scale to 16 billion rows: one Polars query

The post shows how to prototype a data pipeline locally on 97 million Polymarket orderbook rows, then run the same LazyFrame queries on 16 billion rows using distributed execution. The pipeline pre-aggregates the raw data into small Parquet artifacts in S3 that power a responsive Plotly Dash dashboard without scanning the full dataset on each request.

https://pola.rs/posts/market-data-to-plotly-enterprise-dashboard/
jsonfold: Making Pretty-Printed JSON Compact and Readable in Python

jsonfold is a streaming post-filter that compacts pretty-printed JSON by folding small arrays and objects onto single lines while preserving existing serializers and custom encoders. It processes JSON incrementally without reparsing the document, keeping additional memory usage bounded while producing more compact, human-readable output for large JSON files.

https://medium.com/@yair.lenga/a-streaming-json-formatter-that-works-with-existing-serializers-eced220da37d
Thinking in Python by Bruce Eckel

https://thinkinginpython.com/