POWL Miner
Process mining with the Partially Ordered Workflow Language (POWL 2.0).
POWL is a Python library for discovering process models from event data. You can view the models, build your own, and export them as POWL JSON or BPMN diagrams, 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.save_visualization(model, "model.svg") # Save an image
powl.export(model, "model.powl") # POWL JSON
powl.export(model, "model.bpmn") # BPMN 2.0
The log needs a case ID, an activity name, and a timestamp for each event. By default, these columns are named case:concept:name, concept:name, and time:timestamp. You can also pass a pandas DataFrame directly to powl.discover().
Use your own column names
For a CSV with columns named case_id, activity, and timestamp:
custom_log = powl.import_event_log("events.csv", timestamp_key="timestamp")
custom_model = powl.discover(
custom_log,
case_id_key="case_id",
activity_key="activity",
timestamp_key="timestamp",
)
To reduce the influence of infrequent behavior, try filtering during discovery:
filtered_model = powl.discover(log, dfg_frequency_filtering_threshold=0.1)
The threshold ranges from 0 to less than 1; higher values apply stronger filtering.
Discover parallel activities
If activities can happen at the same time, use their timestamps to discover a model that preserves this parallel behavior. When start and completion events are available, the library also uses overlapping activity durations.
parallel_model = powl.discover_from_partially_ordered_log(log)
powl.view(parallel_model)
Work with object-centric event logs
For event data that connects several kinds of objects, such as orders and items, import an OCEL file and discover an object-centric Petri net:
ocel = powl.import_ocel("events.sqlite")
object_centric_model = powl.discover_petri_net_from_ocel(ocel)
powl.view_ocpn(object_centric_model)
Rule-aware discovery
Include known process rules when discovering a model. For example, CT and MRI must not occur in the same case, and treatment must be followed immediately by discharge:
from powl.discovery.rule_based import ChainResponseRule, NotCoExistenceRule
rules = {NotCoExistenceRule("CT", "MRI"), ChainResponseRule("Treat", "Discharge")}
rule_model = powl.discover_with_rules(log, rules)
powl.export(rule_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")
Reopen a saved model with powl.read_powl_json("handmade.powl").
To use a POWL model with other process-mining tools, convert it to a Petri net:
net, initial_marking, final_marking = powl.convert_to_petri_net(model)
To add pools and lanes to the BPMN export, assign each activity a pool and lane:
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.
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.2
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.2.tar.gz | 234.3 kB | With provenance | Details for powl-2.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powl-2.4.2-py3-none-any.whl | Python 3 | none | any | Details for powl-2.4.2-py3-none-any.whl |
Total release size: 509.8 kB
Release files / powl-2.4.2.tar.gz
| Download URL | powl-2.4.2.tar.gz |
|---|---|
| Size | 234.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28a6389aae9c9e86c251f1f96b94422265675369e5e30241bcdd73c06b8e0aac
|
|
BLAKE2b-256 checksum How to use checksums |
a16a35ca5190a27f34501bf5d1295da7311376327c33e62337eb130b1b8bd9d9
|
| 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 24, 2026.
Transparency logRelease files / powl-2.4.2-py3-none-any.whl
| Download URL | powl-2.4.2-py3-none-any.whl |
|---|---|
| Size | 275.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce26d52b88caf254313bbef58fa0b6850ed06404a7742e635e0252d70df18e5c
|
|
BLAKE2b-256 checksum How to use checksums |
59d786e513f49b6d27677e9674e86e8cdeae867882ac15a270f339a376f3e5bf
|
| 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 24, 2026.
Transparency logSecurity for powl 2.4.2
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.2.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 24, 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.