Datasette 的 datasette-arrows 0.1a0 加入 Arrow 串流匯出
datasette-arrows 0.1a0
datasette-arrows 0.1a0 為 Datasette 加入 Apache Arrow 串流匯出選項,讓用戶可在匯出對話框選擇 Arrow 格式。Claude Fable 5.2 提議採用這種格式並建立了插件;安裝指令為 `datasette install datasette-arrows`。
Datasette 1.0a43 added the ability for plugins to implement streaming export formats. Datasette core supports streaming CSV and TSV - you can export millions of lines of data from a table without needing to load it all into memory, because those two file formats support streaming data in chunks. The register_output_renderer() plugin hook can now be used to implement the same pattern for other formats.
I've learned never to release a new plugin feature without accompanying it with a plugin that uses it.
Claude Fable 5.2 suggested the Apache Arrow streaming format as a good option, and built this plugin in almost a single shot.
Add the plugin to Datasette (datasette install datasette-arrows) and the export dialog gains this new Arrow option:

This screenshot is from Datasette's main branch - the most recent release doesn't yet group streaming formats such as Arrow with the TSV and CSV in the "All rows in this table" section, but that's coming in the next alpha release.
來源:Simon Willison · simonwillison.net