Skip to main content

Dekart CLI for auth, MCP tool discovery, calls, and file upload flows.

Project description

dekart-cli

Dekart MCP wrapper for your AI agent to create maps from SQL query results.

Works best with the geosql skill — it writes the SQL, this CLI renders the map.

Works with any Dekart instance:

  • Dekart Cloud (SaaS, default)
  • Self-hosted (your own URL)
  • Localhost (http://localhost:8080)

Init

pip install dekart
dekart init

dekart init walks you through:

  1. Picking the instance (Cloud / self-hosted / localhost).
  2. Authorizing the CLI in your browser.
  3. Optionally enabling local snapshots.

To switch instance later:

dekart config --url <your-url>
dekart init

Config and token: ~/.config/dekart/.

Enable local snapshot

Local headless renderer for fast PNG snapshots without a round-trip to the server:

dekart snapshot-local install

Manage:

dekart snapshot-local status
dekart snapshot-local uninstall          # remove renderer
dekart snapshot-local uninstall --purge  # also remove its browser cache

When local snapshot is enabled, dekart snapshot --report-id <id> --out ./snap.png uses it automatically. Pass --remote-only to force server-side rendering.

Run Query And Download Rows

Run a warehouse query through a Dekart connection, wait for the job, and save result rows:

dekart query --report-id <report-id> --dataset-id <dataset-id> --connection-id <id> --sql-file ./query.sql --out-dir ./results --wait --json

Queries wait by default; use --no-wait only when you expect an already-finished job. dekart query reuses the given report and dataset: it updates the existing dataset query when one is present, otherwise it creates one query for that dataset. Use --json to return report_id, dataset_id, query_id, job_id, terminal status, report_url, and result_file metadata. Empty downloads fail with empty result (metadata/SHOW statement?).

Preview Downloaded Rows

Preview a CSV or parquet file produced by dekart query:

dekart preview ./results/<result-file>.parquet --limit 20
dekart preview ./results/<result-file>.parquet --schema

Preview output is tab-separated. Parquet and CSV previewing use the bundled DuckDB Python dependency.

Links

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

dekart-0.9.0.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dekart-0.9.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file dekart-0.9.0.tar.gz.

File metadata

  • Download URL: dekart-0.9.0.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dekart-0.9.0.tar.gz
Algorithm Hash digest
SHA256 f74fe8ab5c429e9b53935071cbf419d082a294e8454f886c89a92b35820c8b91
MD5 d27c9d96f08689a875076faaafc26792
BLAKE2b-256 35bff8fd94952634526aabe8de6865313d70e4843d357799f2ff39a8ddec0b2f

See more details on using hashes here.

File details

Details for the file dekart-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: dekart-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dekart-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02f1f69c74e3e003932afaa6df66f550d1943b89d487203dc1b0b79ca93aa109
MD5 dccfc60ba2de6d25cdaf3cfe68f3b8b7
BLAKE2b-256 1eb3d4a1513103375c852962590a50bc35d773a490c392c07827f946928f7e6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page