datasette 1.0a40

Simon Willison's Weblog · 7d ago
Products & Tools API & Dev Tools

How-To How to actually use this

What changed: Datasette 1.0a40 adds background task support via plugins, migrates to httpx2, and includes bug fixes.

How to use it:

  1. Define a plugin that calls `datasette.add_background_task()` to run async jobs without blocking requests.
  2. Use the new `datasette.client.get()` method for internal HTTP calls within your plugin code.
  3. Update your Datasette instance to 1.0a40 to receive the security fix and bug fixes.

Good for: plugin developers building async background tasks in Datasette

Release: datasette 1.0a40 Same security fix as 0.65.5 , plus some neat new features and bug fixes: Plugins can now launch and manage background tasks using the new datasette.add_background_task() method. Thanks, Alex Garcia . I've migrated Datasette to httpx2 for features like the internal datasette.client.get() method. A whole lot of bug fixes , many of them stemming from a recent effort to…

Read original article on Simon Willison's Weblog →