A DBT lineage viewer
Project description
DBT Dependency Viewer
DBT Lineage Viewer is a command-line tool for visualizing the upstream and downstream dependencies of a specified DBT model within a DBT project. It generates an HTML file containing a diagram of the dependency tree.
Installation
Install the package using pip:
pip install dbt-lineage-viewer
Usage
To use the DBT Dependency Viewer, please navigate into your dbt project folder and run the following command:
dbt-lineage-viewer <model_name> --max-depth <max_depth> --output <output_file>
Replace <model_name> with the name of the DBT model you want to analyze,
<max_depth> with the maximum depth for the dependency tree, and
<output_file> with the name of the output HTML file.
Parameters
model_name: The name of the DBT model to analyze (required). max_depth: The maximum depth for the dependency tree (optional, default: 3). output: The name of the output HTML file (optional, default: "test.html").
Example
Analyze the tbl_acquisition_funnel model with a maximum depth of 3, and generate an output HTML file named dependency_tree.html:
dbt-lineage-viewer tbl_acquisition_funnel --max-depth 3 --output dependency_tree.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbt_lineage_viewer-1.0.4.tar.gz.
File metadata
- Download URL: dbt_lineage_viewer-1.0.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2a67e1d24c11b9d149e9fefdcfde48c55e60b4926f6d1fa7c77967cb2b59770
|
|
| MD5 |
d785ccdfdf128910f76fa5ed2d1fb560
|
|
| BLAKE2b-256 |
e438acbb6cf8c99c53a384a6531cd00d1272db47ba0f9bcd1ed80a0bb31da0ed
|
File details
Details for the file dbt_lineage_viewer-1.0.4-py3-none-any.whl.
File metadata
- Download URL: dbt_lineage_viewer-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
981eb6a63ef68857a76b85ee2a423aed6e52aaa9b201e830a46806722aa4b97e
|
|
| MD5 |
6a46b5107fe94b8a02436a03466038c0
|
|
| BLAKE2b-256 |
c78b3b80043f66c56fdd11d85b51d0a93df1fd6634bb53a28110f06a23efa3d8
|