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
Hashes for dbt_lineage_viewer-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eef3e1f4fd0cb4fc945dfbb9833afad0ab94cb2cb0e1bdf680b63411554c7f5 |
|
MD5 | 1a59a56f867bf1621d95618afb4ad9a3 |
|
BLAKE2b-256 | 315e567ce468fb26d79d4b0d462396eeff00c7df2723a488b1ed1bdc28330a2d |