transitions
transitions copied to clipboard
A lightweight, object-oriented finite state machine implementation in Python with many extensions
When in strict mode, mypy objects to imports from transitions with errors like ``` error: Module "transitions.extensions" does not explicitly export attribute "LockedMachine"; implicit reexport disabled [attr-defined] ``` This occurs...
I am experimenting with modifying HierarchicalGraphMachine for my particular use case: using `remove_transition` and/or removing states. I noticed that the GraphMachine family does not update its markup when structural changes...
Catch `BaseException` instead of `Exception` during state transition. Even though user user exceptions should be derived from `Exception` [[1](https://docs.python.org/3/library/exceptions.html#built-in-exceptions)], some exceptions such as `KeyboardInterrupt` are not. I do not see...
The following can be considered a derivative of [Resuse of previously created hsms](https://github.com/pytransitions/transitions#reuse-of-previously-created-hsms), where the child states need to be dynamically added to an existing state. ```python from transitions.extensions.nesting import...
Suppose I have a hierarchical state machine and I transition into a nested state (suppose caffeinated, which is defined as its own model). The state on the hierarchical state machine...
It seems like there are a few open issues there, and I was just wondering if anyone is still supporting the GUI.
Since transitions uses runtime decoration quite excessively static type checkers have a hard time to analyse trigger and convenience functions. This has been discussed in previous issues: - #654 -...
**Describe the bug** Significantly worse performance on python 3.12 **Minimal working example** Need to line profile in more detail but appears that Machine creation is about 5x slower in my...
The last release was Release 0.9.0 Sep 2, 2022 Maybe it makes sense to update the version of the library and include recent improvements in the release?