Data preparation for object-centric process mining.
Project description
PyStack't (pystackt)
PyStack't (pystackt) is a Python package based on Stack't that supports data preparation for object-centric process mining.
📦 Installation
You can install pystackt using pip:
pip install pystackt
📖 Documentation
Detailled documentation can be found here: View PyStack't Documentation
🔍 Viewing Data
PyStack't creates DuckDB database files. From DuckDB version 1.2.1 onwards, you can explore them using the UI extension. Below code will load the UI by navigating to http://localhost:4213 in your default browser.
import duckdb
with duckdb.connect("./stackt.duckdb") as quack:
quack.sql("CALL start_ui()")
input("Press Enter to close the connection...")
Alternatively, you can use a database manager. You can follow this DuckDB guide to download and install DBeaver for easy access.
📝 Examples
⛏️🐙 Extract object-centric event log from GitHub repo (get_github_log)
from pystackt import *
get_github_log(
GITHUB_ACCESS_TOKEN="insert_your_github_access_token_here",
repo_owner="LienBosmans",
repo_name="stack-t",
max_issues=None, # None returns all issues, can also be set to an integer to extract a limited data set
quack_db="./stackt.duckdb",
schema="main"
)
📈 Interactive data exploration (start_visualization_app)
from pystackt import *
prepare_graph_data( # only needed once
quack_db="./stackt.duckdb",
schema_in="main",
schema_out="graph_data_prep"
)
start_visualization_app(
quack_db="./stackt.duckdb",
schema="graph_data_prep"
)
📤 Export to OCEL 2.0 (export_to_ocel2)
from pystackt import *
export_to_ocel2(
quack_db="./stackt.duckdb",
schema_in="main",
schema_out="ocel2",
sqlite_db="./ocel2_stackt.sqlite"
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pystackt-0.0.3.tar.gz.
File metadata
- Download URL: pystackt-0.0.3.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e48208d2ebd69985745773e3afaaea80ea9450330f2b8625f41ea05407f663
|
|
| MD5 |
3d15d2bf09efb2709bf3f6b93c2cd9ab
|
|
| BLAKE2b-256 |
a1bfa286a3282d49032031723c3ea92be89ee4b1029735aace60d95dc134f804
|
File details
Details for the file pystackt-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pystackt-0.0.3-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eb32133122c22f6c6d1d3c9188b45e61e36c45abc1160936b4593871170fae9
|
|
| MD5 |
99a2a82ac9c448ac920dc2cfaccfb348
|
|
| BLAKE2b-256 |
54ff0d80955b8d67d86b427c86e666cd147f236e3d073d52a23e986a660e97cf
|