Examples¶
Project examples live in examples/.
Included Scenarios¶
01_simple_phone_call.py: basic transitions and machine info/graph output02_bug_tracker.py: external state storage and parameterized triggers03_async_actions.py: async entry/exit patterns04_ignore_reentry.py: ignore + reentry behavior05_on_off.py: minimal toggle machine06_alarm_asyncio.py: larger async orchestration workflow07_json_serialization.py: serializing domain state while machine logic remains configured in code08_advanced_features.py: mixed advanced features in one workflow
Running an Example¶
uv run python examples/01_simple_phone_call.py
Notes¶
Examples are practical demos, not exhaustive API specifications. For guaranteed behavior and signatures, use the API reference and test suite.