Ross ROSS = Recommend OSS · open-source software intelligence for agents

fgmacedo/python-statemachine

Expressive statecharts and FSMs for modern Python. observed · 2026-08-28

github.com/fgmacedo/python-statemachine · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

93/100

  • Activity 98
  • Release rhythm 83
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 37.0
  • age_days: 3451
  • days_rel: 32
  • days_push: 16
  • n_releases_24m: 9

Full methodology

Adoption not part of the score

1298 stars · 109 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library for defining finite state machines and full Harel statecharts with a declarative, pythonic API. It supports compound states, parallel regions, history, sync/async code, and diagram generation.

Use cases

  • model business logic as a state machine in Python
  • implement statecharts with hierarchical and parallel states
  • add finite state machine behavior to a Python class
  • generate state machine diagrams from code
  • manage async state transitions in Python applications

When to choose

  • you need expressive statecharts (compound, parallel, history states) in Python
  • you want a clean declarative DSL with hooks like on_enter/on_exit and guards
  • you need both sync and async support
  • you want automatic diagram or markdown documentation of transitions

When to avoid

  • you need a distributed or persistent workflow engine rather than in-process state logic
  • your project is not Python
  • you only need simple boolean flags instead of formal state modeling

Facets

library · maturity active

state-management developer-tools developer-tools python cross-platform state-machine statechart fsm harel-statechart scxml hierarchical-state-machine async-support diagram-generation automation algorithms

2 sources

Member repositories

RepositoryRoleHealth v2
fgmacedo/python-statemachinemain93

For agents

markdown · JSON · MCP: product_card(name="fgmacedo/python-statemachine")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem