Other articles

  1. Defining and implementing finite state machines in Python with the transitions module

    This post discusses the implementation of FSMs (finite state machines) in Python using the transitions module. The following are discussed: (1) Given a set of rules, how to implement an FSM with Python and transitions. (2) How to export a Python transitions FSM to JSON. (3) How to read that JSON file and generate Python code which implements the FSM that it specifies. (4) How to load a JSON file that describes an FSM into a running Python application.

    read more