process-intelligence-solutions/pm4py
Official public repository for PM4Py (Process Mining for Python) — an open-source library for exploring, analyzing, and optimizing business processes with Python.
What it solves
Process mining is about extracting knowledge from event logs to discover, monitor, and improve real business processes. PM4Py provides a toolbox of algorithms to do this analysis in Python, making it easier for researchers and practitioners to apply these techniques without starting from scratch.
How it works
PM4Py offers a set of Python functions that wrap process mining algorithms. For example, you can read an event log in XES format with pm4py.read_xes, automatically discover a Petri net model using the inductive miner (pm4py.discover_petri_net_inductive), and then visualize it as an SVG with pm4py.view_petri_net. The library is installed via pip and supports optional add-on features (like machine learning, Polars dataframes, or LLM integration) through extras.
Who it's for
PM4Py is designed for both academic and industry projects. Researchers can use it to test and compare process mining methods, while practitioners can deploy it to analyze real-world event logs and support process improvement initiatives.
Highlights
- Open-source (AGPL-3.0) with a commercial licensing option for closed-source environments.
- Supports multiple Python versions (3.8 through 3.14) and can be installed with a single pip command.
- Includes optional feature groups (e.g.,
ml,polars,llm,visualization) to extend functionality. - Offers a reproducible installation mode (
pm4py[stable]) with validated dependency versions. - Backed by Process Intelligence Solutions, a spin-off from Fraunhofer FIT, ensuring active maintenance and evolution.
Related
- Project
- Project
- Project
- Project