Skip to main content

POWL Miner

Process mining with the Partially Ordered Workflow Language (POWL 2.0).

POWL Miner is a Python library for discovering, constructing, visualizing, and exporting process models. Models can be saved as POWL JSON or as BPMN 2.0 with diagram layout, including pools and lanes.

Installation

Requires Python 3.11+. Install the library with:

pip install powl

For SVG visualizations and BPMN export, install the Graphviz dot executable and ensure it is on your PATH (for example, apt install graphviz or brew install graphviz). The Python dependency alone does not include this executable.

Quick start

import powl

log = powl.import_event_log("events.csv")  # Also supports .xes and .xes.gz
model = powl.discover(log)

powl.view(model)                       # View the POWL model
powl.export(model, "model.powl")       # POWL JSON
powl.export(model, "model.bpmn")       # BPMN 2.0

By default, discovery expects the case:concept:name, concept:name, and time:timestamp columns. Pass the corresponding options to powl.discover() for custom columns and filtering thresholds.

Rule-aware discovery

Supply declarative constraints to the rule-aware Inductive Miner. Its cuts, recursive rule projections, repairs, and fall-throughs produce native POWL models:

from powl.discovery.rule_based import ChainResponseRule, NotCoExistenceRule

rules = {NotCoExistenceRule("CT", "MRI"), ChainResponseRule("Treat", "Discharge")}
metrics = powl.validate_rules(log, rules)  # Optional; does not change the rules
model = powl.discover_with_rules(log, rules, repair_mode="event_level")
powl.export(model, "rule-aware.powl")

Construct and exchange models

POWL models can also be constructed directly, without an event log:

model = powl.sequence([powl.Activity("Receive"), powl.Activity("Check")])
powl.export(model, "handmade.powl")
powl.export(model, "handmade.bpmn")
powl.save_visualization(model, "handmade.svg")

Import a previously exported POWL JSON file with powl.read_powl_json("model.powl").

To export a BPMN collaboration with pools and lanes, pass the activity assignments:

assignments = {
    "Receive": ("Customer", "Requester"),
    "Check": ("Team", "Reviewer"),
}
powl.export(model, "with-resources.bpmn", activity_to_pool_lane=assignments)

The file extension selects the export format: .powl for POWL JSON, or .bpmn for BPMN.

Streamlit app

Try the hosted app, or run it from a repository checkout:

pip install -e ".[app]"
streamlit run app.py

Reference

Kourani, H., Park, G. & van der Aalst, W.M.P. A discovery technique for expressive yet sound process models. Process Sci 3, 14 (2026). https://doi.org/10.1007/s44311-026-00046-8

Metadata

Release files for powl 2.3.9

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

Source distribution (sdist)

Source distribution for powl 2.3.9
File Size Uploaded Provenance Actions
powl-2.3.9.tar.gz 220.1 kB With provenance Details for powl-2.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for powl 2.3.9
File Interpreter ABI Platform Actions
powl-2.3.9-py3-none-any.whl Python 3 none any Details for powl-2.3.9-py3-none-any.whl

Total release size: 485.8 kB

Release files / powl-2.3.9.tar.gz

Download URL powl-2.3.9.tar.gz
Size 220.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cc0291361cea35723fd2ec47a043a61d0b9e5993e5dbaa57606f7ff3f7e1617f
BLAKE2b-256 checksum
How to use checksums
ddaa8a90d9e0ec9ca79453f8ffdf8abea146edc7300ae2ff0d91bfe43c8a252d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / powl-2.3.9-py3-none-any.whl

Download URL powl-2.3.9-py3-none-any.whl
Size 265.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e284ce86b1d3d7072590e7ec77ec074869cacc6e8faed68678ec4e1ccde6904
BLAKE2b-256 checksum
How to use checksums
d957b4d32dab2953f9cc392cccbb4dfc49cf83b3ab7ec4e09c293969bc679473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for powl 2.3.9

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for powl-2.3.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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

2.3.9 This release

2 release files Full provenance

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