python-transitions

Upstream: https://github.com/pytransitions/transitions

A lightweight, object-oriented state machine implementation in Python. Compatible with Python 2.7+ and 3.0+.