datapress-client
Async + blocking Rust client for a running DataPress dataset server. Wraps the JSON and Arrow IPC HTTP endpoints.
Features
arrow(default) — decode Arrow IPC stream responses intoarrow::record_batch::RecordBatch.blocking(default) — synchronousblocking::Clientbacked by a private current-thread Tokio runtime.
Disable defaults for an async-only, reqwest + serde build:
= { = "0.4", = false }
Async
use ;
# async
Blocking
use Client;
#
Arrow
# use ;
# async
Endpoints covered
| Method | Endpoint |
|---|---|
healthz / readyz |
GET /healthz, GET /readyz (root) |
datasets |
GET {api}/datasets |
schema |
GET {api}/datasets/{name}/schema |
count |
POST {api}/datasets/{name}/count |
query_json |
POST {api}/datasets/{name}/query |
query_arrow |
POST {api}/datasets/{name}/query/stream (Arrow IPC) |
sql |
POST {api}/sql |
reload |
POST {api}/datasets/{name}/reload |
{api} defaults to /api/v1 (configurable via ClientBuilder::api_base).
License
MIT