alysivji / finite-state-machine

Lightweight, decorator-based Python implementation of a Finite State Machine
MIT License
112 stars 12 forks source link

States can be integers, booleans, or strings #5

Closed alysivji closed 4 years ago

alysivji commented 4 years ago

Adding additional types will make it easier to use this library in conjunction with ORMs where Booleans and Enums are used to manage state.

PR includes an example workflow of how to set up a boolean state machine.

Note: