A DuckDB server for Mosaic
Project description
Mosaic DuckDB Server
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file duckdb_server-0.0.2.tar.gz
.
File metadata
- Download URL: duckdb_server-0.0.2.tar.gz
- Upload date:
- Size: 14.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a041a1d5e1a57dd8f5a7b986937f1109f28acd2de41ac6e7deed18719879d39b |
|
MD5 | c67c8033c8c5239c586da3d0674ae1c4 |
|
BLAKE2b-256 | 09c71d828376f3bcf47f3fc23d98b5e2f96477b94bf6337d5ce46b01a3ea37d3 |
File details
Details for the file duckdb_server-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: duckdb_server-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6370e55fc434521e35e8019d0cc49ccd0234031f5363996a658fd759140dff09 |
|
MD5 | 3ea960b2b97b1f150a06682964d027c2 |
|
BLAKE2b-256 | 49eedcd6ded6d4f50f3ffc98f436e86af22c19b72815b76253162082547eecf2 |