dbtdocs-to-lookml
dbtdocs-to-lookml copied to clipboard
[WIP] A script to add descriptions from dbt schema files to your lookml project
trafficstars
[WIP] dbtdocs-to-lookml
A tool to persist descriptions from your dbt project your lookml project.
Running this proof of concept locally:
cdinto thetest_dbt_projectdirectory- Run
dbt compile. Note, you may need to set up a new dbt target to compile this correctly. cdback into main directory- Run
python dbtdocs_to_lookml.py - Check the
targetdirectory: you should have new lookml files with dbt descriptions
To-dos:
For beta release:
- [ ] Make this handle multiple lookml files
- [ ] Parameterize the paths / add a CLI
- [ ] Consider reasonable assumptions around matching a dbt model to a view
Future considerations:
- Should this overwrite files, or just diff them?
- What other command line arguments should it have?
- What about long descriptions?