py-d2
py-d2 copied to clipboard
A fully typed python interface for building .d2 graph files for use with the D2 engine.
### Description Add option to add text inside the `explanation` property. Text, Markdown and LaTeX are possible options in d2. ### Why Add textes about the shape on the diagram....
### Description On pypi there is a "Homepage" link pointing to which is currently returning a 404.
Adds support for layers: https://d2lang.com/tour/composition. Note: I couldn't create a `py_d2/layer.py` due to circular impors with `D2Diagram`. This PR builds upon my links feature branch: https://github.com/MrBlenny/py-d2/pull/30.
## Related Issues Prerequisite for "layers" support: https://github.com/MrBlenny/py-d2/issues/29. ## Description Add supports for shape's "link" field: [docs](https://d2lang.com/tour/interactive/#links).
### Description https://d2lang.com/tour/layers ### Why Layers are great to build levels of abstraction into your diagram. ### Alternatives n/a
### Description The README has only one very simple example of using py-d2. Although the "Supported Features" list helps know what is available it would greatly help to have at...
### Description tooltip is a standard attribute in d2 language It does not seem to be available in py-d2. ### Why - When using svg this is extremely useful -...
### Description The latest release of D2 (0.7.1), introduced ASCII outputs. https://d2lang.com/blog/ascii/ It would be nice to have this available in py-d2 ### Why - Ascii output is a very...