Skip to main content

PM4Py

PyPI version Python versions License: AGPL-3.0 DOI

PM4Py is a Python library providing state-of-the-art algorithms and tools for process mining.

It is developed and maintained by Process Intelligence Solutions GmbH (PIS).

Getting started

Installation instructions, tutorials, and the full documentation are maintained on the PM4Py website:

License

The open-source version of PM4Py, available on GitHub, is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

A separate version of PM4Py is available for commercial use in closed-source environments under a different license. See PM4Py Licensing for details.

Optional dependencies

Install extras for the features you need, for example with python -m pip install "pm4py[ocel,polars]".

Extra Installs Use
calendars workalendar Business-hour calculations with holiday calendars
connectors requests Reading remote logs and importing GitHub events
drift hdbscan, river ADWIN drift detection and process version clustering
llm openai, requests Querying language model APIs
ml pyemd, scikit-learn Trace clustering and classification
ocel jsonschema, pyarrow OCEL JSON validation and Parquet import and export
polars polars Process mining with Polars DataFrames
visualization pyvis Interactive social network graphs
windows pygetwindow, pynput, pywin32 (Windows only) Outlook, Windows event logs, and desktop capture
all All feature extras above Install the feature integrations together
stable Pinned core and transitive dependencies Reproduce the dependency versions used in CI

Polars

Polars 1.40.1 and 2.x are supported. Joins used in filtering and enrichment preserve event order, including when lazy queries run on the streaming engine (the default in Polars 2.0).

PuLP

SciPy is the default linear programming solver. Algorithms such as Petri net soundness checks can use PuLP for linear and integer programming. Install PuLP separately from the PM4Py extras. PM4Py selects the matching backend for PuLP 3.x or 4.x. PuLP 4 requires Python 3.12 or newer and the CBC solver. Install both with python -m pip install "pulp[cbc]>=4,<5". You can omit [cbc] if cbc is already on your PATH. For PuLP 3.x, run python -m pip install "pulp>=3,<4".

Release notes

See CHANGELOG.md for incremental updates.

Contributing

Before contributing, please review the contributing guidelines and Contributor License Agreement (CLA).

For a source checkout, install the project with python -m pip install -e .. Build, CI, and lint dependencies are standard dependency groups and can be installed with, for example, python -m pip install --group lint (requires pip 25.1 or later).

Third-party dependencies

As a scientific library in the Python ecosystem, PM4Py relies on external libraries. The licenses of all direct dependencies are in the third_party/ folder, and third_party/LICENSES_TRANSITIVE lists every transitive dependency with its license.

Citing PM4Py

If you use PM4Py in your scientific work, please cite:

Alessandro Berti, Sebastiaan van Zelst, and Daniel Schuster (2023). PM4Py: A process mining library for Python. Software Impacts, 17, 100556. https://doi.org/10.1016/j.simpa.2023.100556

DOI | Article

BibTeX:

@article{pm4py,
  title   = {{PM4Py}: A process mining library for {Python}},
  author  = {Berti, Alessandro and van Zelst, Sebastiaan and Schuster, Daniel},
  journal = {Software Impacts},
  volume  = {17},
  pages   = {100556},
  year    = {2023},
  issn    = {2665-9638},
  doi     = {10.1016/j.simpa.2023.100556},
  url     = {https://www.sciencedirect.com/science/article/pii/S2665963823000933}
}

This repository is managed by Process Intelligence Solutions GmbH. Further information about PIS is available at processintelligence.solutions.

Metadata

Release files for pm4py 2.7.23.16

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

Source distribution (sdist)

Source distribution for pm4py 2.7.23.16
File Size Uploaded Provenance Actions
pm4py-2.7.23.16.tar.gz 1.2 MB Without provenance Details for pm4py-2.7.23.16.tar.gz

Built distribution (wheel)

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

Total release size: 4.0 MB

Release files / pm4py-2.7.23.16.tar.gz

Download URL pm4py-2.7.23.16.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
c22ebfd81d9713c8e1dcdc5d5562148f24dc2c8af982e42fa2dd063d3d47ed96
BLAKE2b-256 checksum
How to use checksums
004054f0e5e4f6a92ebd612e8530af70752a89df556d36d4f43b108e21d1aad2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / pm4py-2.7.23.16-py3-none-any.whl

Download URL pm4py-2.7.23.16-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e4d481d8fa1485f6842a52da0ea2ce6bb9970e2604a2144ad5fd519b2577184c
BLAKE2b-256 checksum
How to use checksums
ab789ee81e3b150eca1f842f8449efdd8a74504b849149f7b3ef043586ebad5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for pm4py 2.7.23.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.

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

2.7.23.16 This release

2 release files No 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