Python Weekly (Issue 744 May 7 2026)

In partnership with

Welcome to issue 744 of Python Weekly. Let's get straight to the links this week.

Ghost: Free Postgres For Agents

Agents are desperate for ephemeral databases.

They spin up projects, fork environments, test ideas, and tear them down. Over and over. But every database on the market was designed for humans who provision once and stick around. Agents don't work that way.

Ghost is a database built for agents. Unlimited databases, unlimited forks, 1 TB of storage, and 100 compute hours per month. All free. Try it here.


Articles, Tutorials and Talks

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.

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.

bocpy is Microsoft’s Python library for behavior-oriented concurrency, where shared data is wrapped in cowns and work is scheduled as behaviors once the needed resources are available. Its pitch is lock-free, deadlock-free parallelism that fits Python well, and on Python 3.12+ it can run behaviors across worker sub-interpreters to use multiple cores.

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.

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.

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.

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.

From XGBoost to deep learning: a two-year rebuild of Faire’s ranking stack.

Polars’ schema evolution focuses on handling real-world schema drift like added, missing, or mismatched columns when reading data. It provides explicit controls to validate, adapt, or coerce schemas across formats like CSV, Parquet, and Delta Lake so pipelines don’t break unexpectedly.


Interesting Projects, Tools, and Libraries

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.

Run AI on your Mac. Faster than anything else.

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

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.

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.

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


New Releases

Django 6.0.5 and 5.2.14 were released to fix three low-severity security issues: an ASGI file-upload limit bypass, a session-fixation risk with cached pages, and incorrect caching when Vary: * was present.


Upcoming Events and Webinars

There will be following talks

  • LLM-powered Merge Conflict Resolver

  • Design patterns are cool!

There will be a talk, Units are Types: Let's Treat Then That Way.

There will be a talk, Using Docker for API and Database ORM Development.

There will be a talk, Typed Python: Contracts That Keep Developers and AI from Guessing.

There will be a talk, video2mdnotes: A Practical Python Pipeline for AI-Assisted Learning.

There will be a talk, Drop-in Resources for Accelerating (Biological) Data Science.


Our Other Newsletters

Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.