$npx skillfedfor your agent

transitions

A lightweight, object-oriented Python state machine implementation with many extensions.

With conditionsPyPI Application FrameworksReleased Jul 20252.9M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — transitions-0.9.3-py2.py3-none-any.whl
v0.9.3 · released 2025-07-02 · 1 runtime deps: six

Yes, if you need a straightforward state machine for modeling workflows or stateful behavior. The library is stable, permissively licensed, and has low install friction. However, note that maintenance is aging (last release July 2025, no recent commits); if you require active development or frequent updates, verify that the project's pace aligns with your needs. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction; pure Python wheel with only six as a runtime dependency.
  • Maintenance status is aging—last release was 2025-07-02 and the repository shows no recent activity, though it remains unarchived with a substantial GitHub presence.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2025-07-02 (408 days) · last repo commit 2025-09-11 · 6,579 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,944,762 downloads/mo, #2,814 on PyPI

Verify before relying

from transitions import Machine

class Matter:
    pass

lump = Matter()
machine = Machine(model=lump, states=['solid', 'liquid'], initial='solid')
machine.add_transition(trigger='melt', source='solid', dest='liquid')
lump.melt()  # Triggers transition
print(lump.state)  # 'liquid'
  • Whether the aging maintenance status (last release 2025-07-02, no recent commits) affects stability or security for new projects.
  • Whether extensions mentioned in the description (e.g., Diagrams) are included or require separate installation.
Same gist for agents: .md · .json

What it is and what it does

Transitions is a state machine library that embeds finite-state behavior into Python objects. You define states and transitions between them, then attach the machine to a model object; the library automatically creates trigger methods that move the object between states. It supports callbacks (actions executed before, after, or during transitions), conditional transitions, and wildcard source states.

The library is designed for modeling workflows, event-driven systems, and stateful processes where you need to enforce valid state changes and execute side effects when transitions occur. It's built on top of six for Python 2/3 compatibility and has a minimal dependency footprint.

Use it for

  • Model application workflows where objects move through defined states (e.g., order processing: pending → shipped → delivered).
  • Implement event-driven systems where triggers initiate state changes and callbacks execute business logic.
  • Build game or simulation logic where entities have discrete states and rules governing transitions between them.
  • Enforce state validity in domain objects by preventing invalid transitions and logging state changes.
  • Create interactive state machines for chatbots, form wizards, or multi-step processes.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a straightforward state machine for modeling workflows or stateful behavior.

The library is stable, permissively licensed, and has low install friction. However, note that maintenance is aging (last release July 2025, no recent commits); if you require active development or frequent updates, verify that the project's pace aligns with your needs. No known security vulnerabilities.

Install

transitions on PyPI

Before you install

Low install friction; pure Python wheel with only six as a runtime dependency. Maintenance status is aging—last release was 2025-07-02 and the repository shows no recent activity, though it remains unarchived with a substantial GitHub presence.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

from transitions import Machine

class Matter:
    pass

lump = Matter()
machine = Machine(model=lump, states=['solid', 'liquid'], initial='solid')
machine.add_transition(trigger='melt', source='solid', dest='liquid')
lump.melt()  # Triggers transition
print(lump.state)  # 'liquid'

Verify before relying

  • Whether the aging maintenance status (last release 2025-07-02, no recent commits) affects stability or security for new projects.
  • Whether extensions mentioned in the description (e.g., Diagrams) are included or require separate installation.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
six
MaintenanceAging 408 days since the last release
Last repo commit
First released
Downloads2,944,762 / month, #2,814 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: transitions-0.9.3-py2.py3-none-any.whl

Tags

Capabilities
state machine library pythonfinite state machine implementationobject state managementworkflow state transitionsevent-driven state changes
Topics
state-machineworkflow-engineevent-driven

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “finite state machine implementation”

  • transitionsTransitions is a lightweight state machine library that lets you…
  • fysomFysom is a finite state machine library that lets you define states,…
  • django-fsmProvides finite state machine support for Django models, allowing you…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also fysom · python-statemachine · Automat · automaton · django-fsm-2 · django-fsm · django-fsm-log · django-pgtrigger · bddl · cellpylib