Video + notes on upgrading a Datasette plugin for the latest 1.0 alpha, with help from uv and OpenAI Codex CLI

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Plugin developers maintaining Datasette extensions get a repeatable recipe, uv-sandboxed tests plus a Codex CLI one-liner, for handling the 1.0a20 permission API break.

Read this as

Simon Willison published a video plus notes showing how he upgraded one of his small add-ons, called datasette-checkbox, to work with a new test version of his data-exploration tool, Datasette. The new version broke an old permission-checking method, causing errors. He used free tools that run code in isolated spaces to reproduce the bug, then let OpenAI's coding agent, Codex, fix the code automatically. The finished update, version 0.1a4, is now available on the public Python package index, PyPI.

This is a practical walkthrough, not a product launch: Datasette 1.0a20 renamed the permission API, breaking older plugins. Willison shows a cheap workflow, run tests in disposable uv environments, then hand the failing test suite to OpenAI Codex CLI in non-interactive mode with a reference document and let it loop until tests pass. Teams maintaining many plugins could apply this to cut upgrade effort; the shipped result is datasette-checkbox 0.1a4 on PyPI.

Datasette 1.0a20 removed Datasette.permission_allowed(), so plugins using it 500-error. Willison's 'tadd' shell script runs pytest in an isolated uv environment installing the plugin as editable plus ~/dev/datasette; his tests were too weak to catch the failure until updated to assert a 200 on the table page. The fix was applied by 'codex exec --dangerously-bypass-approvals-and-sandbox' told to read the upgrade docs and make tadd pass. He verified the shipped 0.1a4 release with 'uvx --prerelease=allow'.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Datasette datasette-checkbox uv OpenAI Codex CLI PyPI Descript

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.