Simon Willison’s Weblog

Subscribe

Thursday, 9th April 2026

Release asgi-gzip 0.3 — gzip middleware for ASGI applications, extracted from Starlette

I ran into trouble deploying a new feature using SSE to a production Datasette instance, and it turned out that instance was using datasette-gzip which uses asgi-gzip which was incorrectly compressing event/text-stream responses.

asgi-gzip was extracted from Starlette, and has a GitHub Actions scheduled workflow to check Starlette for updates that need to be ported to the library... but that action had stopped running and hence had missed Starlette's own fix for this issue.

I ran the workflow and integrated the new fix, and now datasette-gzip and asgi-gzip both correctly handle text/event-stream in SSE responses.

Release datasette-gzip 0.3 — Add gzip compression to Datasette

GitHub doesn't tell you the repo size in the UI, but it's available in the CORS-friendly API. Paste a repo into this tool to see the size, for example for simonw/datasette (8.1MB).

Wednesday, 8th April 2026
Friday, 10th April 2026

2026 » April

MTWTFSS
  12345
6789101112
13141516171819
20212223242526
27282930