文件名称:python-statemachine:Python有限状态机变得容易
文件大小:40KB
文件格式:ZIP
更新时间:2024-05-23 08:21:38
python automata state-machine finite-state-machine statemachine
Python状态机 Python变得容易。 免费软件:MIT许可证 文档: : 。 入门 要安装Python状态机,请在您的终端中运行以下命令: $ pip install python-statemachine 定义您的状态机: >>> from statemachine import StateMachine, State >>> class TrafficLightMachine ( StateMachine ): ... green = State( ' Green ' , initial = True ) ... yellow = State( ' Yellow ' ) ... red = State( ' Red ' ) ... ... slowdown = green.to(yellow) ... stop = yellow.to(
【文件预览】:
python-statemachine-develop
----setup.py(1KB)
----.gitignore(850B)
----.pyup.yml(24B)
----Makefile(2KB)
----.travis.yml(1KB)
----MANIFEST.in(264B)
----requirements_dev.txt(116B)
----LICENSE(1KB)
----HISTORY.rst(3KB)
----setup.cfg(346B)
----.github()
--------ISSUE_TEMPLATE.md(331B)
----statemachine()
--------__init__.py(281B)
--------statemachine.py(15KB)
--------utils.py(192B)
--------mixins.py(894B)
--------registry.py(2KB)
--------exceptions.py(3KB)
----README.rst(6KB)
----tests()
--------test_state_callbacks.py(3KB)
--------test_transitions.py(4KB)
--------conftest.py(3KB)
--------test_multiple_destinations.py(6KB)
--------test_callable_instance.py(525B)
--------__init__.py(24B)
--------test_statemachine.py(11KB)
--------test_statemachine_inheritance.py(2KB)
--------test_registry.py(2KB)
--------test_mixins.py(879B)
----pytest.ini(185B)
----requirements_test.txt(201B)
----.coveragerc(468B)
----AUTHORS.rst(523B)
----CONTRIBUTING.rst(3KB)
----.flake8(76B)
----docs()
--------Makefile(7KB)
--------index.rst(249B)
--------conf.py(8KB)
--------history.rst(28B)
--------authors.rst(28B)
--------installation.rst(1KB)
--------make.bat(6KB)
--------readme.rst(27B)
--------usage.rst(87B)
--------contributing.rst(33B)
----.checkignore(30B)
----.editorconfig(292B)
----tox.ini(724B)
----mypy.ini(171B)