Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SpiffWorkflow

Logo

Spiff Workflow is a workflow engine implemented in pure Python. It is based on the excellent work of the Workflow Patterns initiative. In 2020 and 2021, extensive support was added for BPMN / DMN processing.

Motivation

We created SpiffWorkflow to support the development of low-code business applications in Python. Using BPMN will allow non-developers to describe complex workflow processes in a visual diagram, coupled with a powerful python script engine that works seamlessly within the diagrams. SpiffWorkflow can parse these diagrams and execute them. The ability for businesses to create clear, coherent diagrams that drive an application has far reaching potential. While multiple tools exist for doing this in Java, we believe that wide adoption of the Python Language, and it's ease of use, create a winning strategy for building Low-Code applications.

Build status

SpiffWorkflow Documentation Issues Pull Requests

Code style

PEP8

Dependencies

We've worked to minimize external dependencies. We rely on lxml for parsing XML Documents, and that's it!

Features

  • BPMN - support for parsing BPMN diagrams, including the more complex components, like pools and lanes, multi-instance tasks, sub-workflows, timer events, signals, messages, boudary events and looping.
  • DMN - We have a baseline implementation of DMN that is well integrated with our Python Execution Engine.
  • Python Workflows - We've retained support for building workflows directly in code, or running workflows based on a internal json data structure.

A complete list of the latest features is available with our release notes for version 1.0.

Code Examples and Documentation

Detailed documentation is available on spiff.works. Also, checkout our example application, which we reference extensively from the Documentation.

Installation

pip install spiffworkflow

Tests

Standard environment:

pip install -e .[dev]
make tests
make tests-par
make tests-cov

Using uv:

uv sync --extra dev
make RUN='uv run' tests
make RUN='uv run' tests-par
make RUN='uv run' tests-cov

Support

You can find us on Discord at https://discord.gg/BYHcc7PpUC

Commercial support for SpiffWorkflow is available from Sartography

Contribute

Pull Requests are and always will be welcome!

Please check your formatting, assure that all tests are passing, and include any additional tests that can demonstrate the new code you created is working as expected. If applicable, please reference the issue number in your pull request.

Credits and Thanks

Samuel Abels (@knipknap) for creating SpiffWorkflow and maintaining it for over a decade.

Matthew Hampton (@matthewhampton) for his initial contributions around BPMN parsing and execution.

The University of Virginia for allowing us to take on the mammoth task of building a general-purpose workflow system for BPMN, and allowing us to contribute that back to the open source community. In particular, we would like to thank Ron Hutchins, for his trust and support. Without him our efforts would not be possible.

Bruce Silver, the author of BPMN Quick and Easy Using Method and Style, whose work we referenced extensively as we made implementation decisions and educated ourselves on the BPMN and DMN standards.

The BPMN.js library, without which we would not have the tools to effectively build out our models, embed an editor in our application, and pull this mad mess together.

Kelly McDonald (@w4kpm) who dove deeper into the core of SpiffWorkflow than anyone else, and was instrumental in helping us get some of these major enhancements working correctly.

Thanks also to the many contributions from our community. Large and small. From Ziad (@ziadsawalha) in the early days to Elizabeth (@essweine) more recently. It is good to be a part of this long lived and strong community.

License

GNU LESSER GENERAL PUBLIC LICENSE

Metadata

Release files for SpiffWorkflow 3.2.1a1793299556

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SpiffWorkflow 3.2.1a1793299556
File Size Uploaded Provenance Actions
spiffworkflow-3.2.1a1793299556.tar.gz 154.2 kB Without provenance Details for spiffworkflow-3.2.1a1793299556.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SpiffWorkflow 3.2.1a1793299556
File Interpreter ABI Platform Actions
spiffworkflow-3.2.1a1793299556-py3-none-any.whl Python 3 none any Details for spiffworkflow-3.2.1a1793299556-py3-none-any.whl

Total release size: 430.0 kB

Release files / spiffworkflow-3.2.1a1793299556.tar.gz

Download URL spiffworkflow-3.2.1a1793299556.tar.gz
Size 154.2 kB
Tags Source
SHA-256 checksum
How to use checksums
03b33f5ccdbbe1a3e1c0b1db37df6718471f22723999f45de1097e2cb29fb837
BLAKE2b-256 checksum
How to use checksums
9767d832ac816d7d7e9fa2a6143f4a7f52cf8200145b1fe7ea020b444f065a29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / spiffworkflow-3.2.1a1793299556-py3-none-any.whl

Download URL spiffworkflow-3.2.1a1793299556-py3-none-any.whl
Size 275.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bee4c8475ce01748986b7cfddc763ec37394289926ca8e5935191c1a5b9c02a
BLAKE2b-256 checksum
How to use checksums
82f61991a790051413deb57add9d2e761257d7bd7ab488b1345044656df3c7f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for SpiffWorkflow 3.2.1a1793299556

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page