Skip to main content

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

pystackt-0.0.5.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystackt-0.0.5-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file pystackt-0.0.5.tar.gz.

File metadata

  • Download URL: pystackt-0.0.5.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for pystackt-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d25dea82218d791d85dc7471786afc553b4192aec5471c8a50a4d497b4bc19a4
MD5 883f769e99a426414c4d6a1e98e0f89d
BLAKE2b-256 21053207ae04d808c87aa08fc73eccccadb7e485394e3a7647c7a5a4bf9f987a

See more details on using hashes here.

File details

Details for the file pystackt-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pystackt-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for pystackt-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f34d8d420c0254404df3aa117a347c8d387305621488592cc69bb1882e8ffa1
MD5 ad9568db61d1b3538918a53b5a90a8eb
BLAKE2b-256 1c2e11a721e941f36f94a2df04a0196f58c06bf14135bbd596fa7390273d0de7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page