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.

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

Uploaded Source

Built Distribution

duckdb_server-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duckdb_server-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 246b15a98f4928c55787b6f636ed0bfded117826ada6a2392a6f675382a718a0
MD5 5d17ec6910c72cc4a28aa1a5eddccb57
BLAKE2b-256 d93d79fd99a88a3064bfed0027b29ab1134cb0275a4b271f1336e62e00130ab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for duckdb_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39c5ce52413e0dca1a3229f5575cb933ae8d91060aa9599265839d7de85164ac
MD5 a688872c946805c22bb664560237c9f7
BLAKE2b-256 de591b981b49910e2bd6ba67c8ad0685511e155a6c28fcea17cad09fbca42895

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