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
@trace_state(logger) to set the trace logger for a state and all it’s children
Faster, simpler to write, easier to read the other python hsm frameworks.
Still pre-alpha, but usable. Great to play with hierarchical state machines. Check the hsm.test for documentation. More formal documentation available soon.
Cheers
- Contributor List:
Fabio N. Filasieno
Enea Bionda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Hsm-0.1.9.zip
.
File metadata
- Download URL: Hsm-0.1.9.zip
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c6ff6a90fdb87a49e54edd7f783fddee7287c3bdd9f48f01f48363e264f12cb |
|
MD5 | 082deaef61e5cfa3285d387aa1b203d7 |
|
BLAKE2b-256 | ee1921008db56ec1c2b7dc889863b848096cf151bbbbc73cef41ae1bfc739f16 |