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
- Parses your dbt manifest — Reads
target/manifest.jsonto build the DAG (auto-compiles if missing) - Runs dbt with JSON logging — Spawns
dbt --log-format json <your-args>as a subprocess - Parses output in real-time — Tracks model start/success/error events
- Broadcasts via WebSocket — Pushes DAG updates, run state, and logs to the browser
- 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.ymland 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.