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 --connection-id <id> --sql-file ./query.sql --out ./result.parquet --wait --print

Queries wait by default; use --no-wait only when you expect an already-finished job. Use --json instead of --print to return report_id, dataset_id, query_id, job_id, terminal status, report_url, and saved file metadata as JSON. Printing parquet rows uses the bundled DuckDB Python dependency. Empty downloads fail with empty result (metadata/SHOW statement?).

Download Query Result By Job ID

Fetch result bytes for a finished job:

dekart fetch-job --job-id <job-id> --wait

Notes:

  • By default, dataset id is resolved from check_job_status.query_job.dataset_id.
  • Output path defaults to job-<job-id>.<extension>.
  • Extension is resolved from check_job_status (csv or parquet).

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.8.0.tar.gz (32.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.8.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dekart-0.8.0.tar.gz
  • Upload date:
  • Size: 32.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.8.0.tar.gz
Algorithm Hash digest
SHA256 91673de41f44f2759d96c50c5e1d6cbfa28eaa4e13b507fad64aa259bbcde706
MD5 a2409d733a6f54573101669da654a37b
BLAKE2b-256 4c1c17589a9224a705108c8b68350d90e2253c68ba53fd98eac6495e591986a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dekart-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15f41a016848b571765dd2e210087a399f469f542c926511d36fe080334956a0
MD5 1fd775b193829fc0e0d76095d31fb69c
BLAKE2b-256 8ff5cf866a814dee16759cb62214f7e4509e1ea8b03aed1b359bb80301ab9b3c

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