python-statemachine 2.3.5__tar.gz → 2.3.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/PKG-INFO +2 -1
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/pyproject.toml +5 -5
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/__init__.py +1 -1
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/engines/async_.py +1 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/engines/sync.py +1 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/statemachine.py +5 -4
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/LICENSE +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/README.md +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/callbacks.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/contrib/__init__.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/contrib/diagram.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/dispatcher.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/engines/__init__.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/event.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/event_data.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/events.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/exceptions.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/factory.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/graph.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/i18n.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/locale/en/LC_MESSAGES/statemachine.po +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/locale/pt_BR/LC_MESSAGES/statemachine.po +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/mixins.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/model.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/py.typed +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/registry.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/signature.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/state.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/states.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/transition.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/transition_list.py +0 -0
- {python_statemachine-2.3.5 → python_statemachine-2.3.6}/statemachine/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-statemachine
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.6
|
|
4
4
|
Summary: Python Finite State Machines made easy.
|
|
5
5
|
Home-page: https://github.com/fgmacedo/python-statemachine
|
|
6
6
|
License: MIT
|
|
@@ -23,6 +23,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
24
|
Classifier: Topic :: Software Development :: Libraries
|
|
25
25
|
Provides-Extra: diagrams
|
|
26
|
+
Requires-Dist: pydot (>=2.0.0) ; extra == "diagrams"
|
|
26
27
|
Description-Content-Type: text/markdown
|
|
27
28
|
|
|
28
29
|
# Python StateMachine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-statemachine"
|
|
3
|
-
version = "2.3.
|
|
3
|
+
version = "2.3.6"
|
|
4
4
|
description = "Python Finite State Machines made easy."
|
|
5
5
|
authors = ["Fernando Macedo <fgmacedo@gmail.com>"]
|
|
6
6
|
maintainers = [
|
|
@@ -33,14 +33,14 @@ classifiers = [
|
|
|
33
33
|
"Intended Audience :: Developers",
|
|
34
34
|
]
|
|
35
35
|
|
|
36
|
-
[tool.poetry.extras]
|
|
37
|
-
diagrams = ["pydot"]
|
|
38
|
-
|
|
39
36
|
[tool.poetry.dependencies]
|
|
40
37
|
python = ">=3.7"
|
|
38
|
+
pydot = { version = ">=2.0.0", optional = true }
|
|
39
|
+
|
|
40
|
+
[tool.poetry.extras]
|
|
41
|
+
diagrams = ["pydot"]
|
|
41
42
|
|
|
42
43
|
[tool.poetry.group.dev.dependencies]
|
|
43
|
-
pydot = "^2.0.0"
|
|
44
44
|
ruff = "^0.4.8"
|
|
45
45
|
pre-commit = "*"
|
|
46
46
|
mypy = "*"
|
|
@@ -105,13 +105,14 @@ class StateMachine(metaclass=StateMachineMetaclass):
|
|
|
105
105
|
)
|
|
106
106
|
self._put_nonblocking(trigger_data)
|
|
107
107
|
|
|
108
|
-
self._engine =
|
|
108
|
+
self._engine: AsyncEngine | SyncEngine | None = None
|
|
109
|
+
self._select_engine(rtc)
|
|
109
110
|
|
|
110
|
-
def
|
|
111
|
+
def _select_engine(self, rtc: bool):
|
|
111
112
|
if self._callbacks_registry.has_async_callbacks:
|
|
112
|
-
|
|
113
|
+
AsyncEngine(self, rtc=rtc)
|
|
113
114
|
else:
|
|
114
|
-
|
|
115
|
+
SyncEngine(self, rtc=rtc)
|
|
115
116
|
|
|
116
117
|
def activate_initial_state(self):
|
|
117
118
|
result = self._engine.activate_initial_state()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|