$npx skillfedfor your agent

django-fsm

Django friendly finite state machine support.

With conditionsPyPI Python ModulesReleased Oct 2025609.1K downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_fsm-3.0.1-py2.py3-none-any.whl
v3.0.1 · released 2025-10-07

Yes, with conditions. The package is stable and permissively licensed, with no known vulnerabilities and low install friction. However, the aging maintenance status (311 days since last release, marked inactive) and the breaking API change in version 3.0 mean you should verify that the current version meets your Django and Python requirements and that you're comfortable with limited active development.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Maintenance status is aging—last release was 311 days ago and the package is marked as inactive in development status, though the repository remains active with 2349 stars.

License · maintenance · safety

MIT License (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.

last release 2025-10-07 (311 days) · last repo commit 2025-10-07 · 2,349 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 609,134 downloads/mo, #5,776 on PyPI

Verify before relying

from enum import Enum
from django_fsm import State

class Stage(Enum):
    NEW = 1
    DONE = 2

class MyFlow(object):
    state = State(Stage, default=Stage.NEW)
    
    @state.transition(source=Stage.NEW, target=Stage.DONE)
    def complete(self):
        pass

flow = MyFlow()
flow.complete()  # Transition to DONE
  • Whether version 3.0.1 is a breaking change from 2.x and what migration effort is required.
  • Current maintenance timeline and whether aging status signals end-of-life or stable maintenance.
  • Minimum Python and Django version requirements not explicitly stated in metadata.
Same gist for agents: .md · .json

What it is and what it does

django-fsm is a finite state machine library for Django that lets you declare states and transitions declaratively using Python enums and decorators. Instead of allowing arbitrary state changes, it enforces a controlled workflow where transitions between states are explicitly defined and validated. You define a State field with an enum, then attach transition methods decorated with source and target states; calling a transition method moves the state forward only if the transition is allowed, otherwise it raises an exception.

The package is designed for low-level, database-independent FSM logic or as a wrapper around existing Django models to implement persistent workflow processes. It has been in development since 2010, with a major API redesign in version 3.0 that is incompatible with earlier versions. The library provides a simple way to enforce business rules around state changes without building custom validation logic.

Use it for

  • Define multi-step approval workflows (e.g., draft → review → approved → published) with controlled transitions.
  • Implement order or payment state machines with validation rules and restricted state changes.
  • Build task or ticket lifecycle management where state changes are restricted by business logic.
  • Create document workflows with states like new, in-review, rejected, and finalized.
  • Enforce state-based permissions so only certain transitions are allowed from each state.

Worth the install?

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

With conditions

Yes, with conditions.

The package is stable and permissively licensed, with no known vulnerabilities and low install friction. However, the aging maintenance status (311 days since last release, marked inactive) and the breaking API change in version 3.0 mean you should verify that the current version meets your Django and Python requirements and that you're comfortable with limited active development.

Install

django-fsm on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance status is aging—last release was 311 days ago and the package is marked as inactive in development status, though the repository remains active with 2349 stars.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.

Quickstart

from enum import Enum
from django_fsm import State

class Stage(Enum):
    NEW = 1
    DONE = 2

class MyFlow(object):
    state = State(Stage, default=Stage.NEW)
    
    @state.transition(source=Stage.NEW, target=Stage.DONE)
    def complete(self):
        pass

flow = MyFlow()
flow.complete()  # Transition to DONE

Verify before relying

  • Whether version 3.0.1 is a breaking change from 2.x and what migration effort is required.
  • Current maintenance timeline and whether aging status signals end-of-life or stable maintenance.
  • Minimum Python and Django version requirements not explicitly stated in metadata.

Package facts

LicenseMIT License permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 311 days since the last release
Last repo commit
First released
Downloads609,134 / month, #5,776 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 7 - InactiveEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 1.10Framework :: Django :: 1.11Framework :: Django :: 1.6Framework :: Django :: 1.8Framework :: Django :: 1.9Framework :: Django :: 2.0Framework :: Django :: 2.1Framework :: Django :: 2.2Framework :: Django :: 3.0Framework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming 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.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: django_fsm-3.0.1-py2.py3-none-any.whl

Tags

Capabilities
django state machinefinite state machine djangoworkflow state transitionsdjango fsmstate management djangodeclarative workflowstate transition rules
Topics
state-machineworkflowdjango-extension
PyPI keywords
django

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 django”

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

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also django-fsm-2 · django-viewflow · django-fsm-log · automaton · fysom · transitions · python-statemachine · django-dirtyfields · Automat