Skip to main content

duckhaven-cli

dh — the command-line interface for DuckHaven.

It gives analysts, CI pipelines and operators scriptable access to DuckHaven's REST API: running SQL, browsing the catalog, publishing dbt lineage and semantic models, managing grants, and operating service accounts, users and agents.

Like every member of this repo it is a pure HTTP client of DuckHaven's public REST API, authenticating with a Personal Access Token (dh_pat_…). The interactive REPL holds a SQL session through duckhaven-sql-connector; everything else, including one-shot dh sql, goes over the REST API directly, because the one-shot query route works on deployments where SQL sessions are switched off.

Install

pip install duckhaven-cli
# or, to get an isolated tool install:
uv tool install duckhaven-cli

Getting started

dh auth login --host https://duckhaven.example.com
dh sql -q "select 1"

Documentation

Licence

Apache-2.0. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duckhaven_cli-0.1.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

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

duckhaven_cli-0.1.0-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file duckhaven_cli-0.1.0.tar.gz.

File metadata

  • Download URL: duckhaven_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for duckhaven_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd6302de64e93d1d1cace8acb2f05b91f3b4ee073e1915111709b5d3919bbcda
MD5 39daa3118847c692d9a9356a0324f630
BLAKE2b-256 18854e5af35d3b25177f1d3d947a5a751ee3c106f5cdd18e5791c0f0e5e25eb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.1.0.tar.gz:

Publisher: release.yml on tamasmrtn/duckhaven-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file duckhaven_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: duckhaven_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for duckhaven_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4563cd3356aa91de27203043dbf36078ed090c21acfab4c5b4d74baa3f6066ad
MD5 72fbd1436c25b62f2877e60f52cac838
BLAKE2b-256 bdf4653da7d7b8791d9eae1b302451072093408a595ba69d0f1dfea018514678

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on tamasmrtn/duckhaven-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page