Skip to main content

Generate ERDs from local repository's for DBT AutomateDV projects

Project description

DBT - AutomateDV ERD generator

This Python project scans an AutomateDV local repository of SQL templates, extracts metadata (e.g., keys, tags, structure), and can automatically generate:

  • A basis Entity-Relationship Diagram (ERD) as a .png
  • A SQL query framework joining an ensemble (hub / sat / link) together

Ensembles are identified by the tags in the AutomateDV templates

Setup

First, install Graphviz from https://graphviz.org/ Second, install Graphviz package: pip install graphviz Finally, install OVM_ERD: pip install ovm-erd

Test the installation by running: python -m ovm_erd --help

Execution

CLI

python -m ovm_erd graphviz --path C:/Local_repository --ensemble example

python -m ovm_erd sql --path C:/Local_repository --ensemble example

API

from ovm_erd.erd_sql import erd_sql
erd_sql(path="...", ensemble="...")


from ovm_erd import erd_graphviz
erd_graphviz(path="...", ensemble="...")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovm_erd-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovm_erd-1.0.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ovm_erd-1.0.0.tar.gz.

File metadata

  • Download URL: ovm_erd-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ovm_erd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 db31c678f77cbf1a4ec41a8345cc6ed8868767e147f83a1238e0f6194711fb79
MD5 bffe0eae6d1721b631c990df0a5e3b5a
BLAKE2b-256 8b97dd96ba0ab62b8a41e82bdc5da0cfac997ab106faac77522284858f147f66

See more details on using hashes here.

File details

Details for the file ovm_erd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ovm_erd-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ovm_erd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8668c6524c1606d96025abc1436a2f704624da4b593ab8292b8557276470cf
MD5 d2885f0a06ade3c74822a986eb3b8bfe
BLAKE2b-256 84a521022c9eca0a869b084384ade16dbf85d8f1b8164b84dd84e3652ad461c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page