Skip to main content

dbt-docket

A real-time GUI for local dbt runs. Launch a web server that visualizes your DAG with color-coded model status, streams live logs, and lets you trigger new runs directly from the browser.

Installation

pip install dbt-docket

Or install from source:

git clone https://github.com/your-org/dbt-docket.git
cd dbt-docket
pip install -e ".[dev]"

Quick Start

From your dbt project directory:

# Run dbt with live visualization
dkt run -s stg_stripe_invoices+2

# Or just view the DAG without running
dkt view

# Custom port
dkt --port 9000 run -s model+

This starts a local web server and opens your browser. The GUI shows:

  • Live DAG — Color-coded nodes (green = success, yellow = running, red = failed, gray = not started)
  • Run stats — Progress bar, passed/failed/remaining counts
  • Real-time logs — Streamed via WebSocket with level-based coloring
  • Interactive graph — Zoom, pan, hover for tooltips, tap to center

Configuration

Create a docket.yml in your dbt project root (optional):

dbt_project_dir: .
profiles_dir: ~/.dbt

port: 8765
host: 127.0.0.1
open_browser: true

All settings have sensible defaults. You can also override via CLI flags:

dkt --port 9000 --host 0.0.0.0 run -s my_model

CLI Reference

dkt [options] <dbt-command> [dbt-options...]
dkt [options] view

Options:
  -c, --config PATH    Path to config file
  -p, --port PORT      Server port (default: 8765)
  -h, --host HOST      Server host (default: 127.0.0.1)
  --no-browser         Don't automatically open browser
  --help               Show help

Examples:
  dkt run -s stg_stripe_invoices+2
  dkt build --target prod
  dkt test -s my_model
  dkt view

How It Works

  1. Parses your dbt manifest — Reads target/manifest.json to build the DAG (auto-compiles if missing)
  2. Runs dbt with JSON logging — Spawns dbt --log-format json <your-args> as a subprocess
  3. Parses output in real-time — Tracks model start/success/error events
  4. Broadcasts via WebSocket — Pushes DAG updates, run state, and logs to the browser
  5. Renders with Cytoscape.js — DAG layout using dagre, styled by execution status

Requirements

  • Python 3.9+
  • dbt installed and configured
  • A dbt project with dbt_project.yml and compiled manifest

Development

pip install -e ".[dev]"
ruff check src
pytest

License

MIT

Metadata

Release files for dbt-docket 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbt-docket 0.1.2
File Size Uploaded Provenance Actions
dbt_docket-0.1.2.tar.gz 44.6 kB With provenance Details for dbt_docket-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dbt-docket 0.1.2
File Interpreter ABI Platform Actions
dbt_docket-0.1.2-py3-none-any.whl Python 3 none any Details for dbt_docket-0.1.2-py3-none-any.whl

Total release size: 91.1 kB

Release files / dbt_docket-0.1.2.tar.gz

Download URL dbt_docket-0.1.2.tar.gz
Size 44.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a16adb36e0abacf2c7ae81a63ba3411f1ab2bf50355a0742b89a5458bf68f78e
BLAKE2b-256 checksum
How to use checksums
843e7cfc5e4a6dadf78e99df05b36d4d429b8f5cfcac41fe35a9e268be84cef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 21, 2026.

Transparency log

Release files / dbt_docket-0.1.2-py3-none-any.whl

Download URL dbt_docket-0.1.2-py3-none-any.whl
Size 46.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1ab838481a82683ca68108a5b0ea5091c249b132c4b785a23cd8a1d55f9a1c2
BLAKE2b-256 checksum
How to use checksums
8244ec3aeae68d3e9cab6d445290ea2c365931cb7b651096ceb0d9b552db7dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 21, 2026.

Transparency log

Security for dbt-docket 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dbt_docket-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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