Skip to main content

A DuckDB server for Mosaic

Project description

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 either Apache Arrow or JSON 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 pipx. For example, to directly run the server, use:

pipx run 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 hatch to manage our development setup.

Start the server in development with hatch run serve. The server restarts when you change the code.

To activate the environment, run hatch shell.

To set up a local certificate for SSL, use https://github.com/FiloSottile/mkcert.

The server support queries via HTTP GET and POST, and WebSockets. The GET endpoint is useful for debugging. For example, you can query it with at this url.

Publishing

Run the build with hatch build. Then publish with hatch publish. We publish using tokens so when asked, set the username to __token__ and then use your token as the password.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duckdb_server-0.0.3.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

duckdb_server-0.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file duckdb_server-0.0.3.tar.gz.

File metadata

  • Download URL: duckdb_server-0.0.3.tar.gz
  • Upload date:
  • Size: 14.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for duckdb_server-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6d8e6dd3c9a559e3789c4613f64559bd0137d4920265995cec8c4771159142a1
MD5 52df9680f75ba1368c514cdf0861005e
BLAKE2b-256 2e52ecb5639787beb803c99e9e3280c950e751dd20382bda17ae670c255554d8

See more details on using hashes here.

File details

Details for the file duckdb_server-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for duckdb_server-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a36716de6141c66b9742d1ffe4053674a6337bef479198eb6df336e06b092820
MD5 2399206e528d4ebfe5f5e50f72ff1552
BLAKE2b-256 2fbf588b5df29fb244b683a8a57d61973e69d211e8c2f002a8f5793094832295

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page