automat
automat copied to clipboard
documentation for automat-visualize
automat-visualize
really needs documentation to explain how to use it.
Just hear about the library in https://www.podcastinit.com/automat-state-machines-with-glyph-lefkowitz-episode-116/ and was expecting to get the visual output, I guess I'll have to take a look at the source code for the time being.
For a quick test, install http://graphviz.org (on macOS, brew install graphviz
, on Ubuntu, apt install graphviz
, on Windows, no idea), pip install automat[visualize]
, then, automat-visualize your.python.module.name
. your.python.module.name
is not a filename; it must be a name that import
can find. Finally, open up the file .automat_visualize/your.python.module.name.YourClass.machine.dot.png
.