Skip to content

GrAndSE/machinizator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machinizator

Machinizator is a library for Python can be used to build a state machines from already defined objects. You can just write another class described state machine around exists object fileds and replace old class with newly created. This state machine class get all fields from wrapped class and adds new functionality to control current object state.

Supports:

  • Pure python
  • DSL for state machine creation.
  • Change state events with callbacks
  • Calbacks on state enter or exit

Example:

See test.py for working example.

TODO:

  • Write more tests.
  • Add setup-tools support.
  • Think how can we made single state machine from few different objects (useful to keep relations between object states)

About

Library can be used to create state machine from exists object using simple DSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages