mortise

Synchronous state machine framework for event driven systems


Keywords
state, fsm
License
MIT
Install
pip install mortise==1.0.1

Documentation

Mortise - A python state machine framework

Mortise is a synchronous state machine library for event based systems.

Features

  • Synchronous state-machine event handling
  • No external dependencies
  • Composable / Reusable state support via pushdown automata
  • State timeout and retry limit support
  • Directed exception handling + state transitions on exception
  • State machine visualization (requires graphviz)

Requirements

  • Python >= 3.4
  • GraphViz (Optional for state machine visualization)

Examples

See the examples folder.

Authors

Mortise was developed at Keyme by Jeff Ciesielski and Lianne Lairmore