PyStack't Documentation

Real-life data for object-centric processing mining

PyStack't logo

Read the BPM demo paper on CEUR L. Bosmans, J. Peeperkorn, J. De Smedt, PyStack’t: Real-Life Data for Object-Centric Process Mining

View the project on GitHub LienBosmans/pystackt

Watch the demo on Youtube PyStack't Demo BPM 2025

View releases on PyPi pip install pystackt

Consider contributing to PyStack't Contributing guide

PyStack’t Data Exploration

📊 Create Statistics Views

📝 Example

from pystackt import *

create_statistics_views(
    quack_db="./stackt.duckdb",
    schema_in="main",
    schema_out="statistics"
)
Parameter Type Description
quack_db str Path to the DuckDB database file containing the input data.
schema_in str Name of the schema in the DuckDB file that contains the input data. Needs to be stored using in Stack’t relational schema.
schema_out str Name of the schema where the output SQL views will be created. If schema already exists, it will be cleared first.

Input data (quack_db, schema_in)

The input data must be stored in a DuckDB database file using the Stack’t relational schema. quack_db defines the path to this file, and schema_in specifies the schema containing the OCED data.

Output views (schema_out)

Two SQL views are created in the schema defined by schema_out. They contain some simple statistics that provide an excellent starting point to get to know the data.

If schema_out already exists, it will be cleared before the new views are created.

🔍 Viewing Data

The article How to view DuckDB files explains how you can view the result.