datapress-cli-0.4.24 is not a library.
datapress-cli
Command-line client for a DataPress
dataset server, built on datapress-client.
Install
Connection
Set once via environment, or pass per-command flags:
| Env var | Flag | Default |
|---|---|---|
DATAPRESS_URL |
--url |
http://127.0.0.1:8000 |
DATAPRESS_TOKEN |
--bearer-token |
— |
DATAPRESS_ADMIN_TOKEN |
--admin-token |
— |
| — | --api-base |
/api/v1 |
| — | --timeout |
— (seconds) |
Add --pretty to pretty-print JSON (default is compact, single-line).
Commands
# List datasets
# Schema
# Count (repeatable --where "col:op[:val]")
# Structured query
# Group-by with aggregation + HAVING
# Render an ASCII table (fetches via Arrow IPC)
# Save raw Arrow IPC stream to a file ( - for stdout)
# Raw SQL (endpoint must be enabled server-side)
# Admin
# Probes
Mini-syntax
--where/--having:col:op[:val], e.g.Severity:gte:3,State:eq:CA,Notes:is_null. The value is parsed as JSON when possible (numbers, booleans, arrays forin), else treated as a string. Ops:eq | neq | gt | gte | lt | lte | like | ilike | in | is_null | is_not_null.--agg:op:col[:alias](e.g.avg:Severity:mean_sev) orcount[:alias]. Ops:count | sum | avg | min | max.--order-by:col,col:asc, orcol:desc.--select/--group-by: comma-separated and/or repeatable.
License
MIT