State-of-the-art-process mining in Python

Designed to be used in both academia and industry, pm4py is the leading open source process mining platform written in Python, implementing: .
A sneak peak of pm4py's simple application:
import pm4py
if __name__ == "__main__":
    log = pm4py.read_xes('<path-to-xes-log-file.xes>')
    process_model = pm4py.discover_bpmn_inductive(log)

Process Mining Made Easy

Discovering a process model using less than 10 lines of code!
pm4py is available through Python pip and is easily integrated with several other applications.
Fully Documented
What's the use of a library without proper documentation? Read all about it on the Documentation page!
Happy to Help
We are happy to help you in case you have any questions, just drop us a message!


pm4py Tutorial Series Available on Youtube!

We are regularly releasing various pm4py tutorials on Youtube!

pm4py featured on

Read this interesting article introducing process mining in python using pm4py!

pm4py featured on Towards Data Science!

Eryk Lewinson wrote a blog-post about process mining, using pm4py.

pm4py featured on the "A Side of Data" Podcast

Our founder, Sebastiaan van Zelst, was interviewed by Anton Yeshchenko about pm4py and novel developments in process mining. You can listen to it here, or, on SoundCloud.

Watch the pm4py Introduction at PyData Eindhoven 2019

We gave an introduction talk on process mining and using pm4py at PyData Eindhoven 2019. You can watch it here, or, on YouTube.

Get Started

What are you still waiting for? Install pm4py now and start playing around!