CLI to generate ERD Diagram file from dbt artifact files
Project description
dbterd
CLI to generate Diagram-as-a-code file (DBML, Mermaid, PlantUML, GraphViz, D2) from dbt artifact files (required:
)
pip install dbterd --upgrade
Verify installation:
dbterd --version
Quick examine with existing samples
Click me
# select all models in dbt_resto
dbterd run -ad samples/dbtresto
# select all models in dbt_resto, Select multiple dbt resources
dbterd run -ad samples/dbtresto -rt model -rt source
# select only models in dbt_resto excluding staging
dbterd run -ad samples/dbtresto -s model.dbt_resto -ns model.dbt_resto.staging
# select only models in schema name mart excluding staging
dbterd run -ad samples/dbtresto -s schema:mart -ns model.dbt_resto.staging
# select only models in schema full name dbt.mart excluding staging
dbterd run -ad samples/dbtresto -s schema:dbt.mart -ns model.dbt_resto.staging
# other samples
dbterd run -ad samples/fivetranlog
dbterd run -ad samples/fivetranlog -rt model -rt source
dbterd run -ad samples/facebookad
dbterd run -ad samples/facebookad -rt model -rt source
dbterd run -ad samples/shopify -s wildcard:*shopify.shopify__*
dbterd run -ad samples/shopify -rt model -rt source
dbterd run -ad samples/dbt-constraints -a "test_relationship:(name:foreign_key|c_from:fk_column_name|c_to:pk_column_name)"
# your own sample without commiting to repo
dbterd run -ad samples/local -rt model -rt source
Quick DEMO
Check Quick Demo out! And, following is the sample result using dbdocs:
Contributing ✨
If you've ever wanted to contribute to this tool, and a great cause, now is your chance!
See the contributing docs CONTRIBUTING for more information.
Finally, super thanks to our Contributors:
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 dbterd-1.10.0.tar.gz.
File metadata
- Download URL: dbterd-1.10.0.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fcae8aa5884d9350a899a7c9f7e34b0d0e361b590de55c4c79edd3363d3f802
|
|
| MD5 |
edc8debb96c0ffd154733dfe75306816
|
|
| BLAKE2b-256 |
fc6ff5055bea243deed7a39506a2585d968a18aeeca19e782466c86dd4cb8bbe
|
File details
Details for the file dbterd-1.10.0-py3-none-any.whl.
File metadata
- Download URL: dbterd-1.10.0-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
730c0e6f4eb430730d49f6d0fad875ceb699cb4cd6c729b3900993e9c11be930
|
|
| MD5 |
1034f56610cc3971aafc73834ac73c38
|
|
| BLAKE2b-256 |
8612b6d738e2c181bfa59c8023a92f9f6229db8f69cbc8582716d124f55696be
|