automat icon indicating copy to clipboard operation
automat copied to clipboard

documentation for automat-visualize

Open glyph opened this issue 8 years ago • 2 comments

automat-visualize really needs documentation to explain how to use it.

glyph avatar Jan 24 '17 04:01 glyph

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.

D3f0 avatar Jul 10 '17 20:07 D3f0

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 .

glyph avatar Jul 13 '17 08:07 glyph