awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pytransitions avatar

pytransitions/transitions

0
View on GitHub↗
6,548 stars·567 forks·Python·MIT·12 vues

Transitions

Transitions is an object-oriented finite state machine library for Python. It provides a framework for managing valid states and the logic for moving between them, including implementations for asynchronous state machines and thread-safe state managers.

The library supports hierarchical state machines that allow states to be nested to organize complex subtasks and logical contexts. It includes tools for generating visual diagrams of states and transitions to document machine logic.

The project covers state management primitives such as lifecycle callbacks, conditional transition guarding, and state property tagging. It also provides capabilities for state persistence through serialization and automated transitions based on state timeouts.

Features

  • Finite State Machine Engines - Provides an object-oriented finite state machine engine for managing states and transitions in Python.
  • State Transition Lifecycle Hooks - Provides automatic callbacks triggered during the entry and exit phases of state transitions.
  • Hierarchical State Composition - Supports hierarchical state nesting where sub-states inherit and override the logic of parent states.
  • Asynchronous State Transitions - Implements an asynchronous state machine that manages concurrent events and transitions using task runners.
  • State Lifecycle Callbacks - Executes registered functions automatically during specific transition phases like entry and exit.
  • Hierarchical State Machines - Implements a system for nesting states within other states to organize complex subtasks and logical contexts.
  • Object-Oriented State Mapping - Maps finite state machine logic directly onto Python objects by dynamically adding transition methods to their classes.
  • State Transition Models - Defines the trigger, source, and destination required to move a model from one state to another.
  • Conditional Transition Guards - Evaluates boolean conditions to determine if a transition between states is permitted.
  • State-Transition Execution - Triggers state moves by calling attached methods on a model or using dynamic trigger mechanisms.
  • Asynchronous State Transition Frameworks - Provides a framework for executing state changes that incorporate asynchronous operations and lifecycle hooks.
  • State Transition Validation - Verifies if a transition is permissible from the current state by evaluating conditions without executing the move.
  • Transition Event Queueing - Processes events sequentially in a queue to ensure one transition finishes before the next one begins.
  • State Logic Visualizers - Generates visual diagrams of states and transitions to document the logic of the state machine.
  • State Machine Visualizations - Provides tools for generating visual diagrams of states and transitions to document machine logic.
  • Reentrant Locks - Uses reentrant locks to prevent race conditions during simultaneous state transition triggers.
  • Asynchronous Event Loops - Implements non-blocking transitions and concurrent state changes using asynchronous event loop integration.
  • Asynchronous Action Handling - Manages concurrent transitions and task runners to prevent conflicts in non-blocking applications.
  • Persistence and Serialization - Provides utilities for serializing and persisting the current state of a machine across sessions.
  • Machine State Serialization - Saves and loads the current status of a state machine to persist progress across sessions.
  • Automated Transition Generators - Generates methods that allow a model to move to any target state regardless of its current position.
  • Thread-Safe State Transitions - Prevents data corruption during event dispatching via reentrant locks to ensure atomic state updates.
  • Dynamic Method Generation - Dynamically creates trigger methods on the fly to facilitate state transitions based on configuration.
  • State Timeouts - Automatically triggers events after a state has remained active for a specified duration of time.
  • Algorithms and Patterns - Lightweight finite state machine implementation.

Historique des stars

Graphique de l'historique des stars pour pytransitions/transitionsGraphique de l'historique des stars pour pytransitions/transitions

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Transitions

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Transitions.
  • jakesgordon/javascript-state-machineAvatar de jakesgordon

    jakesgordon/javascript-state-machine

    8,751Voir sur GitHub↗

    This library is a finite state machine framework for JavaScript designed to manage application states and valid transitions. It provides a system for executing state changes with lifecycle hooks, conditional guards, and transition cancellation. The project is distinguished by its ability to inject state machine logic and transition capabilities directly into existing JavaScript class instances or objects. It also includes a visualization tool that exports state configurations into Graphviz DOT language for auditing system logic. The framework covers asynchronous transition execution and paus

    JavaScript
    Voir sur GitHub↗8,751
  • dotnet-state-machine/statelessAvatar de dotnet-state-machine

    dotnet-state-machine/stateless

    6,191Voir sur GitHub↗

    Stateless is a .NET state machine library used to manage complex object behaviors and lightweight workflows through C# code. It functions as an asynchronous workflow engine that executes state transitions, guards, and entry-exit actions using asynchronous tasks. The library implements a hierarchical state machine, allowing child states to inherit transitions and properties from parent superstates. It includes a state persistence framework that decouples state tracking from machine logic by reading and writing the current state to external properties or databases. Additionally, it features a g

    C#
    Voir sur GitHub↗6,191
  • aasm/aasmAvatar de aasm

    aasm/aasm

    5,219Voir sur GitHub↗

    This library provides a framework for defining finite state machines within Ruby classes to manage complex object lifecycles. It functions as a declarative workflow engine, allowing developers to model object states, events, and transitions through a readable domain-specific language. By integrating directly with database persistence layers, the framework ensures that state changes are synchronized with storage records while maintaining data integrity through transaction management and row locking. The library distinguishes itself by enforcing strict business rules through conditional transit

    Ruby
    Voir sur GitHub↗5,219
  • statelyai/xstateAvatar de statelyai

    statelyai/xstate

    29,734Voir sur GitHub↗

    XState is a statechart logic library and finite state machine framework used to model complex application behavior. It provides a system for defining states, events, and transitions to govern how a system responds to inputs through a formal schema. The project includes a visual state machine editor that allows for the design of state machine diagrams which automatically generate the corresponding logic and code. It implements an actor model to manage independent concurrent entities that communicate via asynchronous events to coordinate behavioral flows. The framework covers event-driven stat

    TypeScriptbackground-jobsfinite-state-machinefsm
    Voir sur GitHub↗29,734
Voir les 30 alternatives à Transitions→

Questions fréquentes

Que fait pytransitions/transitions ?

Transitions is an object-oriented finite state machine library for Python. It provides a framework for managing valid states and the logic for moving between them, including implementations for asynchronous state machines and thread-safe state managers.

Quelles sont les fonctionnalités principales de pytransitions/transitions ?

Les fonctionnalités principales de pytransitions/transitions sont : Finite State Machine Engines, State Transition Lifecycle Hooks, Hierarchical State Composition, Asynchronous State Transitions, State Lifecycle Callbacks, Hierarchical State Machines, Object-Oriented State Mapping, State Transition Models.

Quelles sont les alternatives open-source à pytransitions/transitions ?

Les alternatives open-source à pytransitions/transitions incluent : jakesgordon/javascript-state-machine — This library is a finite state machine framework for JavaScript designed to manage application states and valid… dotnet-state-machine/stateless — Stateless is a .NET state machine library used to manage complex object behaviors and lightweight workflows through C#… aasm/aasm — This library provides a framework for defining finite state machines within Ruby classes to manage complex object… statelyai/xstate — XState is a statechart logic library and finite state machine framework used to model complex application behavior. It… pluginaweek/state_machine — This project is a Ruby library for defining and managing object lifecycles through states, events, and transition… chakra-ui/zag — Zag is a headless UI state machine library that provides unstyled component logic to ensure consistent behavior across…