PythonHub Logo Python Hub Weekly Digest for 2026-05-17

This week in Python, popular topics included a PyPI supply-chain compromise in lightning 2.6.2/2.6.3, the release of 'foundry' for shipping full-stack agentic systems, and 'auto-round', a quantization algorithm for high-accuracy low-bit LLM inference. Articles of interest covered topics such as Behavior-Oriented Concurrency for Python, Fast Mesh Booleans in Python, and boosting multimodal inference performance by over 10% with a Python dictionary. New projects included 'bluerock' for Python MCP servers and 'Datanomy', a tool for inspecting data files. Have a great week and happy coding!

đź’– Most Popular

Full Python GUI apps in the browser – no JavaScript, no server

lightning PyPI Compromise: A Bun-Based Credential Stealer in Python
The post describes a PyPI supply-chain compromise in lightning 2.6.2/2.6.3, where importing the package silently downloads Bun and runs an obfuscated JavaScript credential stealer. It also says the payload steals GitHub, cloud, and other secrets, then uses any captured credentials to spread further and commit exfiltrated data back into victim repos.

What’s the simplest way to distribute a Python app to normal users?

foundry
Ship full-stack agentic systems the way they're meant to be built - production-ready, secure by default, with the developer experience modern Python deserves.

auto-round
A SOTA quantization algorithm for high-accuracy low-bit LLM inference, seamlessly optimized for CPU/XPU/CUDA, with multi-datatype support and full compatibility with vLLM, SGLang, and Transformers.


đź“– Articles

Behavior-Oriented Concurrency for Python

z-lab / dflash
DFlash: Block Diffusion for Flash Speculative Decoding

Fast Mesh Booleans in Python
Learn how to perform fast mesh boolean operations in Python. Union, intersection, and difference at interactive speed on million-polygon meshes. One pip install, NumPy arrays in and out.

Your API Can’t Handle Real-World Integrations
The video is about keeping an API clean as integrations multiply, using a flexible custom_data field so new partner-specific IDs and references don’t force schema churn. Its main idea is to preserve a structured core model while giving each integration a safe place to store extra data, instead of turning the API into a junk drawer.

Boosting multimodal inference performance by >10% with a single Python dictionary
Multimodal models are promising, but inference engines haven't been optimized for them yet. We profiled SGLang’s scheduler on a multimodal workload and identified an opportunity to replace expensive book-keeping around shared GPU memory with a simple cache lookup. Throughput and latency both improved over 10% on our target workload.

Full-Text Search with DuckDB
The post shows how DuckDB’s full-text search extension can index a large email corpus and run BM25-ranked keyword search directly in SQL, without needing a separate search engine. It also walks through practical preprocessing and filtering steps, then demonstrates conjunctive queries that return only documents matching all search terms.

Using Bag-of-Words With PyCharm
Let's unpack how the bag-of-words model works, explore the techniques it uses to convert text into numerical representations, and look at where it fits relative to more modern NLP approaches.

How we rebuilt search ranking at Faire with deep learning
From XGBoost to deep learning: a two-year rebuild of Faire’s ranking stack.

Pymetrica, a codebase analysis tool
Pymetrica is a static analysis tool that parses Python source code using the AST and evaluates metrics used to assess complexity, maintainability, and architectural stability.

anthropics / financial-services

Python Hub Weekly Digest for 2026-05-10


⚙️ Projects

bluerock
Runtime visibility for Python MCP servers. Captures tool calls, session lifecycle, module imports (SHA-256), and subprocess execution as structured NDJSON. No code changes. Apache 2.0

Rapid-MLX
Run AI on your Mac. Faster than anything else.

token-optimizer
Find the ghost tokens. Fix them. Survive compaction. Avoid context quality decay.

Datanomy
Datanomy is a terminal-based tool for inspecting and understanding data files. It provides an interactive view of your data's structure, metadata, and internal organization.


👾 Reddits

Do you actually read the source code of libraries you install?


← Previous

Project by Ruslan Keba. Since 2012. Powered by Python. Made in đź‡şđź‡¦Ukraine.