PyStack't (pystackt)
PyStack't (pystackt) is a Python package based on Stack't that supports data preparation for object-centric process mining.
📦 Installation
PyStack't is published on PyPi and can be installed using pip.
pip install pystackt
📖 Documentation
- Extensive documentation is available via GitHub pages.
- A demo video on Youtube can walk you throught the different functionalities.
🔍 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"
)
Metadata
Release files for pystackt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pystackt-0.1.0.tar.gz | 33.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pystackt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.9 kB
Release files / pystackt-0.1.0.tar.gz
| Download URL | pystackt-0.1.0.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95e08264331a91b115f763252d96b46d612d6024acacd87506fe7b54db9d0353
|
|
BLAKE2b-256 checksum How to use checksums |
a385d36b5f838443a08d9501a99025e70111808dd4715cea74186054f3285710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / pystackt-0.1.0-py3-none-any.whl
| Download URL | pystackt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54d1e1f247193db6801aa79850f46a698b48aa0d576960ed7f8bea4495bd0c2c
|
|
BLAKE2b-256 checksum How to use checksums |
5e90b0255cf40ddb6127ec9fcb94f755b62cfcb3c79910b5e36f4fe1157daeeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Security for pystackt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.