Giter Club home page Giter Club logo

dbt-lineage-viewer's Introduction

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

dbt-lineage-viewer's People

Contributors

ydai713 avatar

Stargazers

 avatar Amy Feng avatar Evan Cover avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.