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.4.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

duckdb_server-0.0.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duckdb_server-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 4e5a407c6c607a35dda3a6766cae883965b3fef011f9133c9d3ae1516871cbc7
MD5 0b21f4d7abba24404b7b5d0fd05d778b
BLAKE2b-256 785b77e5ca72fbdff45a559e9e955ff19c9b56015360df0ffc37ced477daf949

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for duckdb_server-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c57d6091d391f5b1a654f7dc588bc290ae2befe332e4946c6545a263f8970e7
MD5 fee0cdb0363cb76465808b77e1181cd5
BLAKE2b-256 d5ea4fd7978088e126f5ebf258b4dbe0e413583f6118adc9e1be63e5b2e5270d

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