django-fsm
django-fsm copied to clipboard
State Diagrams in Mermaid Markdown
Thank you for creating this library! I use it all the time and love the API.
I took a couple of hours and wrote up a function that generates django-fsm
State Diagrams in Mermaid Markdown syntax.
Is there any interest in having django-fsm
support another visualization format? I can clean my code and make a PR.
Attached is a diagram for one of the models in testapp
:
![](https://user-images.githubusercontent.com/4369343/93007543-8d3bdc80-f52f-11ea-8376-7655f84916a8.png)
@alysivji Would you share a link to the code?
https://gist.github.com/alysivji/0475531d2703373c024a60a63b8a2db6
Let me know if you need me to clean this up and make a PR. Would love to contribute to this project. I use it all the time.
@alysivji You could consider releasing this as django-fsm-graph-transitions-mermaid
package on PyPi.
Closing since it's not enough resource on this