$npx skillfedfor your agent

fysom

pYthOn Finite State Machine

SkipPyPI Scientific/EngineeringReleased Sep 2021129.1K downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — fysom-2.1.6.tar.gz · builds from source
v2.1.6 · released 2021-09-10

No. The package is abandoned (last release September 2021, no commits since October 2021) and has high install friction due to source-only distribution. While it is MIT-licensed and has no known vulnerabilities, the lack of maintenance means no bug fixes or Python version updates. Use only if you have an existing codebase already depending on it; for new projects, choose an actively maintained state machine library.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • High install friction: the package is abandoned (last release 2021-09-10, no commits since 2021-10-26) and has no runtime dependencies, but the distribution is source-only (tar.gz), requiring a build step on install.

License · maintenance · safety

MIT (permissive) — MIT licensed (permissive). You can use, modify, and distribute fysom freely in commercial and private projects, provided you include the license notice.

last release 2021-09-10 (1799 days) · last repo commit 2021-10-26 · 399 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 129,116 downloads/mo, #11,683 on PyPI

Verify before relying

from fysom import Fysom

fsm = Fysom({'initial': 'green',
             'events': [
                 {'name': 'warn', 'src': 'green', 'dst': 'yellow'},
                 {'name': 'panic', 'src': 'yellow', 'dst': 'red'}]})

print(fsm.current)  # 'green'
fsm.warn()
print(fsm.current)  # 'yellow'
  • Whether the package works reliably on Python versions beyond 3.5 (documentation mentions testing on 2.6–3.5 and PyPy, but no recent verification).
  • Whether there are known issues or edge cases in production use given the abandoned status since late 2021.
Same gist for agents: .md · .json

What it is and what it does

Fysom is a lightweight finite state machine library that lets you define states, events, and transitions declaratively in a configuration dictionary. You create a Fysom object with an initial state and a list of events (each specifying source and destination states), and the library automatically generates methods for each event that trigger state transitions. You can query the current state, check if a transition is allowed, and optionally define callbacks to run on state changes.

The library is a Python port of Jake Gordon's JavaScript state machine, ported by Mansour Behabadi and maintained with unit tests and a build process. It has no external runtime dependencies and is designed for simple, deterministic state workflows—traffic light sequences, workflow pipelines, or any system with discrete states and well-defined transitions between them.

Use it for

  • Model a workflow with discrete states (draft, review, approved, published) and define which transitions are allowed between them.
  • Implement a traffic light or similar simple state machine where events trigger deterministic state changes.
  • Build a game or interactive system with defined states (menu, playing, paused, game over) and event-driven transitions.
  • Validate state transitions in a business process to ensure only legal state changes occur.
  • Create a simple task scheduler or job runner that tracks job states (pending, running, completed, failed) and transitions.

Worth the install?

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

Skip

No.

The package is abandoned (last release September 2021, no commits since October 2021) and has high install friction due to source-only distribution. While it is MIT-licensed and has no known vulnerabilities, the lack of maintenance means no bug fixes or Python version updates. Use only if you have an existing codebase already depending on it; for new projects, choose an actively maintained state machine library.

Install

fysom on PyPI

Before you install

High install friction: the package is abandoned (last release 2021-09-10, no commits since 2021-10-26) and has no runtime dependencies, but the distribution is source-only (tar.gz), requiring a build step on install.

License in practice

MIT licensed (permissive). You can use, modify, and distribute fysom freely in commercial and private projects, provided you include the license notice.

Quickstart

from fysom import Fysom

fsm = Fysom({'initial': 'green',
             'events': [
                 {'name': 'warn', 'src': 'green', 'dst': 'yellow'},
                 {'name': 'panic', 'src': 'yellow', 'dst': 'red'}]})

print(fsm.current)  # 'green'
fsm.warn()
print(fsm.current)  # 'yellow'

Verify before relying

  • Whether the package works reliably on Python versions beyond 3.5 (documentation mentions testing on 2.6–3.5 and PyPy, but no recent verification).
  • Whether there are known issues or edge cases in production use given the abandoned status since late 2021.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceAbandoned 1,799 days since the last release
Last repo commit
First released
Downloads129,116 / month, #11,683 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonTopic :: Scientific/Engineering

Evidence: fysom-2.1.6.tar.gz

Tags

Capabilities
finite state machinestate machine libraryfsm pythonstate transitionsevent-driven stateworkflow state managementstate machine framework
Topics
state-machineworkflowabandoned

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”

  • fysomFysom is a finite state machine library that lets you define states,…
  • django-fsmProvides finite state machine support for Django models, allowing you…
  • django-fsm-2Adds declarative finite state machine support to Django models,…

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

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

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

See also python-statemachine · transitions · django-fsm-2 · django-fsm · django-fsm-log · automaton · greenery · observable · django-pgtrigger · Automat