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.1.tar.gz (50.1 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.1-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duckhaven_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 50.1 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.1.tar.gz
Algorithm Hash digest
SHA256 699f09ed8f6ac1dba78922c86aae681166a640411f8f12bf0e32560affc16a3d
MD5 0410988f6878942671a6a86d2365f290
BLAKE2b-256 5bb1335ebab2ada0a59e022bce18726232ca85afe11e7e7fa5488b2d3835b6ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: duckhaven_cli-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1754df0493d38fd0124af21f7a80100a76a33b08967d5c5d9d03928b4037f3
MD5 106e1b903c353d45f447cd05ec8404e4
BLAKE2b-256 b32760db53d9d8983bc1d874d5f204a9eccadea7601875f8ebeca78210e34d61

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.1.1-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

This release

0.1.1 This release

2 files

0.1.0

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