Skip to main content

Mosaic DuckDB Server

PyPi

A Python-based server that runs a local DuckDB instance and supports queries over HTTP, returning data in Apache Arrow format.

Note: This package provides a local DuckDB server. To instead use DuckDB-WASM in the browser, use the wasmConnector in the mosaic-core package.

Installation and usage

We recommend running the server in an isolated environment with uvx. For example, to directly run the server, use:

uvx duckdb-server

Alternatively, you can install the server with pip install duckdb-server. Then you can start the server with duckdb-server.

Developer Setup

We use uv to manage our development setup.

Start the server with uv run duckdb-server. The server will not restart when the code changes.

Start the server in development with uv run duckdb-server --reload. The server restarts when you change the code.

Run uv run ruff check --fix and uv run ruff format to lint the code.

To run the tests, use uv run pytest.

API

The server supports queries via HTTP GET and POST. The GET endpoint is useful for debugging.

For example, you can query it with this url:

https://localhost:3000/?query={"type":"arrow","sql":"select 1"}

Each endpoint accepts a query parameter, which is a JSON object with two required fields 1:

type

A command type, discriminates between:

  • arrow: Execute a single statement and return the result in Apache Arrow format.
  • exec: Execute a one or more ";"-separated statements for their side effects.

sql

SQL query to execute.

Publishing

Run the build with uv build. Then publish with uvx twine upload --skip-existing ../../dist/*. We publish using tokens so when asked, set the username to __token__ and then use your token as the password. Alternatively, create a .pypirc file.

  1. Following (#1286) it is expected that the parameters may be simplified to ?type=arrow&sql=select 1 ↩

Metadata

Release files for duckdb-server 0.35.0

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

Source distribution (sdist)

Source distribution for duckdb-server 0.35.0
File Size Uploaded Provenance Actions
duckdb_server-0.35.0.tar.gz 13.7 MB With provenance Details for duckdb_server-0.35.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for duckdb-server 0.35.0
File Interpreter ABI Platform Actions
duckdb_server-0.35.0-py3-none-any.whl Python 3 none any Details for duckdb_server-0.35.0-py3-none-any.whl

Total release size: 13.7 MB

Release files / duckdb_server-0.35.0.tar.gz

Download URL duckdb_server-0.35.0.tar.gz
Size 13.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a9695be96832af8ac267559abbf6fd029775e74f62e31b8f231d00d5c53dee71
BLAKE2b-256 checksum
How to use checksums
2d53dfc22fef6e4be420e66bf90b58307aa991be7a5d46c463808621b6cf6b44
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 3, 2026.

Transparency log

Release files / duckdb_server-0.35.0-py3-none-any.whl

Download URL duckdb_server-0.35.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56cdbb92deae0a9f5732528c68316b3d3fcde1b54c5b52d4548d8ae88ccf4894
BLAKE2b-256 checksum
How to use checksums
1161689cd9ae81b55c7300eff99cc7b226f8d24dbca3de0c8d6cb0a5044ff36d
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 3, 2026.

Transparency log

Security for duckdb-server 0.35.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for duckdb_server-0.35.0.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 3, 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

0.35.0 This release

2 release files Full provenance

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