Python State Machine¶ Contents: Python StateMachine Features Installing First example Async support A more useful example Contributing Installation Latest release From sources States Initial state State Transitions Final state States from Enum types Transitions and events Transitions Events Actions State actions Transition actions Other callbacks Ordering Return values Dependency injection Conditions and Validators Conditions Validators Domain models Listeners Adding listeners to an instance Async Sync vs async engines Asynchronous Support Sync codebase with async callbacks Initial State Activation for Async Code Mixins MachineMixin Integrations Django integration Diagrams How to generate a diagram at runtime Generate from the command line JupyterLab / Jupyter integration Don’t want to install Graphviz Processing model RTC model Non-RTC model API StateMachine State States (class) Transition TransitionList Model TriggerData Event EventData Examples Contributing Types of Contributions Get Started! Pull Request Guidelines Credits Development Lead Contributors Scaffolding Release notes Releases Indices and tables¶ Index Module Index Search Page