Skip to main content
Pre-release

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

Mosaic DuckDB Server

PyPi

A Python-based server that runs a local DuckDB instance and support queries over Web Sockets or 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 pnpm dev. 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, and WebSockets. The GET endpoint is useful for debugging. For example, you can query it with this url.

Each endpoint takes a JSON object with a command in the type. The server supports the following commands.

exec

Executes the SQL query in the sql field.

arrow

Executes the SQL query in the sql field and returns the result in Apache Arrow format.

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.

Metadata

Release files for duckdb-server 0.32.0b0

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.32.0b0
File Size Uploaded
duckdb_server-0.32.0b0.tar.gz 13.7 MB Details

Built distribution (wheel)

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

Total release size: 13.7 MB

Release files / duckdb_server-0.32.0b0.tar.gz

Download URL duckdb_server-0.32.0b0.tar.gz
Size 13.7 MB
Tags Source
SHA-256 checksum
How to use checksums
65068bd9181aa3a74f9776c55372cc188e89ff89413158a8db591de7f8d3047e
BLAKE2b-256 checksum
How to use checksums
6d270ff389d18ca3f360521dd1e4038cc9e16bcc303613d5c5470ff6bc35bf33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 28, 2026.

Transparency log

Release files / duckdb_server-0.32.0b0-py3-none-any.whl

Download URL duckdb_server-0.32.0b0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
652c77013e891d51c792a34b3aa3a597bdbf07f0e3c15a60c50e85819fbbc35a
BLAKE2b-256 checksum
How to use checksums
15969f5f8a8c3efd4785c5d7d36fe818962aab209701d40cc3a0631573a511dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 28, 2026.

Transparency log
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