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
pip install r4pmTwo 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
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.

Modules
Popular Functions
discover_oc-declare
process_mining::discovery::object_centric::oc_declare
discover_dfg
process_mining::discovery::case_centric::dfg
discover_alpha+++
process_mining::discovery::case_centric::alphappp::full
discover_dfg_from_locel
process_mining::core::process_models::object_centric::ocdfg::object_centric_dfg_struct
log_to_activity_projection
process_mining::core::event_data::case_centric::utils::activity_projection
index_link_ocel
process_mining::bindings