pysm icon indicating copy to clipboard operation
pysm copied to clipboard

Versatile and flexible Python State Machine library

Results 6 pysm issues
Sort by recently updated
recently updated
newest added

According to this thread: [Computer Science SE thread](https://cs.stackexchange.com/questions/669/are-turing-machines-more-powerful-than-pushdown-automata) two PDA's or also a 2-stack PDA are as powerful as a single Turing machine. So I was wondering, since you've got...

Looks like State object is missing from micropython version? >>> upip.install('upysm') Installing to: /lib/ Installing upysm 0.3.9 from https://files.pythonhosted.org/packages/4e/6d/c50d0ca1c6cf627830aaf1df619c18aa82519b0bceafa1f7b48a07c3032a/upysm-0.3.9.tar.gz Installing micropython-collections.deque 0.1.3 from https://micropython.org/pi/collections.deque/collections.deque-0.1.3.tar.gz Installing micropython-collections.defaultdict 0.3 from https://micropython.org/pi/collections.defaultdict/collections.defaultdict-0.3.tar.gz Installing...

Consider the following hierarchical state machine ```python from pysm import State, StateMachine, Event def info_handler(f, info): def wrapper(self, event): print(f' >>> {info} state: {self.fully_qualified_name()}') return f(self, event) return wrapper class...

I'm working on an implementation where I store and restore the state stacks so that I can put my Microcontroller to sleep and on boot, reinitialize the state machine, then...

I've started using the pysm implementation of HSM and found interesting issue: the 'entry' handler is not called on initialization (for the initial states). According to this doc https://www.state-machine.com/doc/AN_Crash_Course_in_UML_State_Machines.pdf and...

Env: > MicroPython v1.23.0 on 2024-06-02; Generic ESP32S3 module with ESP32S3 Error: ``` File "/lib/pysm/pysm.py", line 474, in add_state File "/lib/pysm/pysm.py", line 784, in validate_add_state File "/lib/pysm/pysm.py", line 790, in...