The Chonkerton

Introducing wrapture

dev_tools

Simon Willison's Weblog reports that Graham Dumpleton has launched wrapture, a new Python library that blends monkey‑patching with testing and tracing capabilities. The tool lets developers wrap any function or method to observe its behavior or alter its return value, positioning itself as an alternative to unittest.mock while integrating OpenTelemetry for observability. Remarkably, every line of wrapture's code and documentation was generated by an AI assistant under Dumpleton's direction, marking his first fully agent‑driven project. A brief example shows how wrapture can stub out a payment gateway call and transform its result within a test. Published on Monday, the author emphasizes that the project is only a few weeks old but appears to be off to a promising start as an AI‑written, configuration‑based tracing solution.

Source: https://simonwillison.net/2026/Aug/31/introducing-wrapture/

Listen to this story

Hear this and more stories in a personalized audio briefing.

Open The Chonkerton