Skip to main content

Hsm is a hierarchical state machines library designed for very large hand written state machines.

Project description

Hsm is a hierarchical state machines library designed for very large hand written state machines.

Hsm is designed to be concise, i.e. let the user read and write state machines very easily.

It defines a custom metaclass to support:
  • classes as states

  • on_xxx methods as event handler

  • automatically adds send_xxx when an on_xx handler is available

  • @initial_state to define the initial state of a non-leaf state

  • @error_state to define the error_state of a non-leaf state

Faster, simpler to write, easier to read the other python hsm frameworks.

Check the hsm.test and doc/ for documentation. More formal documentation available soon.

Cheers

Contributor List: Fabio N. Filasieno Enea Bionda

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Hsm-0.1.3.zip (12.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page