PythonHub
2.65K subscribers
2.35K photos
50.6K links
Human-curated Python news, projects, articles & tools.

https://pythonhub.dev/
Download Telegram
AI Engineering from Scratch

Build AI systems from first principles with 523 free, open-source lessons spanning math, models, tokenizers, agents, evaluation, and production.

https://aiengineeringfromscratch.com/index.html
Making np.searchsorted up to 25× Faster in NumPy 2.5

The article speeds up binary search by batching independent searches with NumPy’s vectorized operations, then reformulates the algorithm to use only O(1) extra memory. After porting it to C++, the approach achieves up to a 25× speedup over NumPy 2.4’s implementation.

https://blog.scientific-python.org/numpy/searchsorted/
👎1
Building a Faster (Rust-Based) Python Driver for ScyllaDB

ScyllaDB is building a new Python driver on top of its Rust driver using PyO3, with most serialization, deserialization, request execution, and concurrency handled in Rust for better performance and maintainability. Benchmarks show especially large gains under concurrent workloads, while the project still needs production hardening, broader feature coverage, and a compatibility layer for...

https://www.scylladb.com/2026/09/28/building-a-faster-rust-based-python-driver/
🤯1
AI Development on Windows: from PyTorch and llama.cpp to Windows ML

Microsoft is expanding local AI development on Windows with experimental GGUF support in Windows ML via llama.cpp, new native inference APIs, and an OpenAI-compatible endpoint for running models locally. The broader stack also adds native PyTorch and Triton support on Windows Arm64, giving developers a path to train and optimize models with familiar tools and deploy them through Windows ...

https://devblogs.microsoft.com/foundry-on-windows/build-on-winml-oct-7-26/
💩1
Orchestrating Disposable Browser

Glazer replaced race-prone parallel startup with readiness signals between Python and Docker containers, allowing components to start concurrently without assuming that running means ready. That design cut cold starts from 8–10 seconds to about 4.5 seconds, and caching the Tor data directory brought startup down to a consistent 1.9–2.1 seconds.

https://blog.glazer.ee/posts/building-glazer-disposable-browser/
The things you own end up owning you

NumPy is being ported toward Python’s Limited API so it could eventually ship abi3 wheels that work across multiple Python versions, reducing the large per-version wheel matrix and easing support for new Python releases. The same work is also pushing NumPy toward subinterpreter support by replacing static types and global state with heap types and per-module state, though multiarray rema...

https://labs.quansight.org/blog/limited_api_numpy
👀1
Build & Train a GLM-5.3-Flash Model From Scratch with Python

This tutorial demonstrates how to build and train a compact 25-million parameter multimodal language model from scratch using modern techniques like mixture-of-experts and sparse attention. It further explores the AI researcher's role by guiding viewers through pre-training, reinforcement learning experiments, and the critical importance of designing effective data-driven environments.

https://www.youtube.com/watch?v=-gfgQfw2g_E
Pyronaut

Pyronaut is a high-performance polyglot application platform that brings Micronaut features like HTTP routing, dependency injection, configuration, validation, and Java library access to Python via GraalPy.

https://github.com/micronaut-projects/pyronaut
Can Jev save my inbox from the Democrats?

The author outlines an end-to-end ML project evaluating whether TypeSafe’s Jev, accessed through OpenRouter, and smaller local models can effectively filter political fundraising emails from a personal inbox. He ultimately builds a 23.4 MB quantized ONNX SetFit model using mdbr-leaf-mt and confidence thresholding, creating a fast, CPU-friendly local classifier while exposing the remainin...

https://huggingface.co/blog/stephen-solka/use-jev-to-delete-fundraising-emails
🔥1
How we built an async-aware Python profiler

Learn how Datadog made Python profiling async-aware while reducing profiler overhead and preserving context across asyncio tasks.

https://www.datadoghq.com/blog/engineering/async-python-profiler/