Rust4PM Bindings Reference

Bindings Documentation

This documentation covers all functionality of Rust4PM exposed through the dynamic binding system.

Language Bindings

Rust4PM provides bindings for multiple programming languages. Install the package for your language to get started.

Python

r4pm

PyPI
Installation
pip install r4pm

Two APIs are available for working with Rust4PM in Python:

Basic DataFrame API

Easy import/export of event data (XES, OCEL 2.0) as DataFrames. Use this API for quick data manipulation and analysis, or for integration with PM4Py.

import r4pm
# df is a polars DataFrame
# use df.to_pandas() for usage with PM4Py
df, attrs = r4pm.df.import_xes('log.xes')
r4pm.df.export_xes(df, 'output.xes.gz')
# For OCEL with PM4Py support:
ocel = r4pm.df.import_ocel_pm4py('ocel.xml')

Full Bindings API

Full access to all Rust4PM functions documented here. Large data (e.g., event logs) are stored in item registry for efficient handling.

import r4pm
# Import an event log into the item registry
log = r4pm.import_item('EventLog', 'log.xes')
# Export an item from the registry
r4pm.export_item(log, 'output.xes.gz')
# Use any binding function
res = r4pm.bindings.discover_dfg(event_log)

User Interface

numi.aarkue.eu

numi.aarkue.eu

A Graphical User Interface (GUI) for the Rust4PM project. Run process mining functions directly from your browser without writing code. Includes a visual pipeline editor.

Screenshot of the visual pipeline editor

Modules