datasette-fixtures 0.1a0

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

Why it matters

Datasette plugin authors can now reuse the fixture test database via a documented API instead of copying test setup code, which is a minor convenience.

Read this as

Simon Willison released datasette-fixtures 0.1a0, a small package for Datasette, an open-source tool for exploring data in SQLite databases. It provides the sample data used in Datasette's own tests, including a table of quirky California tourist attractions like the Winchester Mystery House, so plugin developers can test against it. It exploits a new helper in Datasette 1.0a30 and can be run instantly with the uvx tool without installing anything. It matters only to a small group of plugin developers.

This is a niche developer release: datasette-fixtures 0.1a0 packages the test data used by Datasette, an open-source SQLite data exploration tool, as an installable plugin. It rides on a new API in Datasette 1.0a30 and affects only teams building Datasette plugins, who can now share standard test fixtures. There is no cost, revenue or competitive angle; the practical impact outside that community is essentially nil.

datasette-fixtures 0.1a0 exposes Datasette's internal fixture database to plugin authors via the new datasette.fixtures.populate_fixture_database(conn) helper, documented in the Datasette 1.0a30 changelog. The plugin is runnable without installation using uvx --with datasette-fixtures datasette --get /fixtures/roadside_attractions.json, which returns JSON rows from the roadside_attractions table. No benchmarks or limitations are stated.

Read the original

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

Key terms

datasette-fixtures 0.1a0 Datasette 1.0a30 uvx datasette.fixtures.populate_fixture_database roadside_attractions

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.