transitions (pypi): A lightweight, object-oriented Python state machine implementation with many extensions.
Keywords: hierarchical-state-machine|nested-states|python|state-diagram|state-machine