Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

datasette-arrows

PyPI Changelog Tests License

Streaming exports for Datasette using Arrow IPC.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-arrows

Usage

This plugin adds a .arrows export format to every table, view, row and SQL query page. It returns the rows as an Arrow IPC stream, served as application/vnd.apache.arrow.stream. The format is also listed in Datasette's "Export data" dialog.

/database/table.arrows
/database/-/query.arrows?sql=select+*+from+table

Like Datasette's CSV export, a table or view URL returns a single page of rows unless you add ?_stream=1, which streams every row:

/database/table.arrows?_stream=1

Rows are fetched and sent one page at a time, as one Arrow record batch per page, so a table of any size can be exported without loading it into memory. Filters, sort order and ?_col= options all apply to the export.

In the "Export data" dialog the Arrow format is listed with TSV and CSV. Check "Include all rows" there to download every row.

Datasette's allow_stream and max_stream_mb settings apply to these exports. Add ?_dl=1 to download the response as a file.

Reading an export in Python:

import urllib.request
import pyarrow as pa

with urllib.request.urlopen(
    "http://localhost:8001/data/dogs.arrows?_stream=1"
) as response:
    table = pa.ipc.open_stream(response).read_all()

Column types

SQLite columns can hold values of any type, but each column in an Arrow stream has a single type which is sent before the first row. The plugin picks that type using the type the column was declared with in its table, if it has one, together with the values in the first page of rows:

SQLite values Arrow type
Integers int64
Floating point, or a mix of floating point and integers float64
Text, or a mix of text and numbers string
Blobs, or a mix of blobs and anything else binary
Nothing but null, in a column with no declared type string

A value on a later page is converted if the column's type can represent it: an integer in a float64 column, or a number in a string column. If it cannot - text in a column declared as INTEGER, for example - the export fails by dropping the connection, so that an incomplete file is not mistaken for a complete one. Export a column like that using a SQL query that casts it, such as select cast(value as text) as value from ....

With ?_labels=on each foreign key column is followed by a column_label column containing the label of the row it refers to.

This plugin requires streaming output renderers, which are in Datasette's main branch but have not yet been included in a release.

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-arrows
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

Metadata

Release files for datasette-arrows 0.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-arrows 0.1a0
File Size Uploaded Provenance Actions
datasette_arrows-0.1a0.tar.gz 11.0 kB With provenance Details for datasette_arrows-0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-arrows 0.1a0
File Interpreter ABI Platform Actions
datasette_arrows-0.1a0-py3-none-any.whl Python 3 none any Details for datasette_arrows-0.1a0-py3-none-any.whl

Total release size: 20.7 kB

Release files / datasette_arrows-0.1a0.tar.gz

Download URL datasette_arrows-0.1a0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a235b35f1d89c3d8e1fd186ba70a9c2c6d27ec89cab54b7feba7a38025e35dd
BLAKE2b-256 checksum
How to use checksums
77b222f727cfa71ae40d5e1dc21d51bf7d98666c5b552d38817b785a00f7a8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / datasette_arrows-0.1a0-py3-none-any.whl

Download URL datasette_arrows-0.1a0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f250280f105a976f9a4280c9b05519ee4097b5efbaaea4d4d874518e0ba717a2
BLAKE2b-256 checksum
How to use checksums
3afb1a9d7b042c53178602b0a62383491b60b1559cf9ab013cd4da8e94b926e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for datasette-arrows 0.1a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for datasette_arrows-0.1a0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page