Closed thedrow closed 3 years ago
That's what MarkupMachine
is doing. It's used for Graphviz and communication in the transitions-gui
project. There is a small example in the FAQs.
Did you check the FAQ?
Yes, I just did. Is there a way to mixin this class to the other variants?
Since GraphMachine
extends MarkupMachine
(that's the only reason why I mentioned Graphviz) I'd say that you can combine MarkupMachine
with all the other extensions. You can have a look at factory.py
in extensions
to see which combinations are currently tested.
It's not clear from the README though.
I'll close this for now.
If I want to serialize and deserialize the state machine and its current state(s) we need a way to transform the
Machine
object to a dict and initialize aMachine
from a dict.