datnguye / dbterd

Generate the ERD as a code from dbt artifacts
https://dbterd.datnguyen.de/
MIT License
198 stars 28 forks source link

[FEAT] Expose Python APIs officially #83

Closed datnguye closed 6 months ago

datnguye commented 7 months ago

Describe the solution you'd like Expose Python APIs officially

API docs will be generated by pdoc 👉 beta site PS: Mainly to support dbt docs generate's result with the ERD enrichment

Give me a 👍 if you think it should be available asap! Thanks

syou6162 commented 7 months ago

Great idea! In fact, I'm writing a script to wrap dbterd for the same purpose in my work case, so I thought it would help many people like me.

However, I think that there are many cases (including my case) where I would like to customize the output to markdown, so I hope that the dbterd run currently provided will be maintained as it is.

datnguye commented 7 months ago

Great idea! In fact, I'm writing a script to wrap dbterd for the same purpose in my work case, so I thought it would help many people like me.

However, I think that there are many cases (including my case) where I would like to customize the output to markdown, so I hope that the dbterd run currently provided will be maintained as it is.

Good point for the various of customizations. Maybe this would just support the Python API for that purpose only.

datnguye commented 6 months ago

https://dbterd.datnguyen.de/1.12-beta/api-docs/dbterd/api.html

Python API docs site preview 👀

datnguye commented 6 months ago

@syou6162 1.12.0b2 should be available now. Do you want to test it out? Thanks 😃

I will need some more testing before releasing the major 1.12.0 next week!