datasette-upload-dbs 0.5a0

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

Why it matters

Teams hosting Datasette can now automate database publishing and atomic updates via a documented API endpoint instead of manual uploads.

Read this as

datasette-upload-dbs is an add-on for Datasette, a tool for publishing data online. Version 0.5a0 lets you upload a SQLite database, a single-file database format, to a hosted Datasette site, which then serves it. The upload is verified and swapped in atomically, meaning the site never shows a half-finished database. People publishing datasets or reports online benefit most.

Version 0.5a0 of the datasette-upload-dbs plugin formalises an API endpoint, /-/upload-dbs, so organisations can automate how they publish and replace datasets on a hosted Datasette instance. Teams can build fresh databases in CI, for example GitHub Actions, and swap them into production automatically. This is a low-risk incremental release for existing Datasette users; it changes little for anyone else.

datasette-upload-dbs 0.5a0 exposes a documented API at https://your-instance.example.com/-/upload-dbs for uploading SQLite files to a running Datasette instance or atomically replacing an existing one. The plugin writes the upload to disk, verifies it, then swaps it so /name serves the new database. A stated use case is building databases in GitHub Actions and swapping them in when the build completes. No benchmark or performance figures are given.

Read the original

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

Key terms

datasette-upload-dbs Datasette SQLite GitHub Actions WorkOS Pyodide

Was this summary useful?

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

Related reading