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.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| powl-2.4.1.tar.gz | 227.7 kB | With provenance | Details for powl-2.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powl-2.4.1-py3-none-any.whl | Python 3 | none | any | Details for powl-2.4.1-py3-none-any.whl |
Total release size: 498.7 kB
Release files / powl-2.4.1.tar.gz
| Download URL | powl-2.4.1.tar.gz |
|---|---|
| Size | 227.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f90b3328f9ff3a47f3707f15bbb60ca8732e943a6472a0b5e74e56603cbd3d8f
|
|
BLAKE2b-256 checksum How to use checksums |
1ce19fbbfb073d18f345023205a849a51419f65ef7ec27d62b18e04741896619
|
| 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 13, 2026.
Transparency logRelease files / powl-2.4.1-py3-none-any.whl
| Download URL | powl-2.4.1-py3-none-any.whl |
|---|---|
| Size | 271.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf5af45bae26ff736d90446fca14091a2a512ddad98af652c8c5ff64e0dbac48
|
|
BLAKE2b-256 checksum How to use checksums |
a79443d5ad6cab7028280929853ab245dcf56067380f6e485ba8c9bac3ec358e
|
| 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 13, 2026.
Transparency logSecurity for powl 2.4.1
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.
Attestation for powl-2.4.1.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 13, 2026.
Transparency logA 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.