Skip to main content

ocelescope

General tools and building blocks for working with Object-Centric Event Logs (OCEL) and for building plugins for the Ocelescope framework.

Installation

pip install ocelescope

To also install the optional dependencies used by plugins:

pip install "ocelescope[plugin]"

Usage

Loading an OCEL

OCEL.read loads an OCEL 2.0 log from a .sqlite, .xml or .json file:

from ocelescope import OCEL

ocel = OCEL.read("order-management.sqlite")

# Structured access to the log via managers (each exposes a pandas DataFrame):
print(ocel.events.df.head())
print(ocel.objects.df.head())
print(ocel.e2o.df.head())   # event-to-object relations
print(ocel.o2o.df.head())   # object-to-object relations

Filtering

OCEL.filter applies a pipeline of filters and returns a new, filtered OCEL:

from ocelescope import OCEL, EventTypeFilter, ObjectTypeFilter

ocel = OCEL.read("order-management.sqlite")

filtered = ocel.filter(
    [
        EventTypeFilter(event_types=["place order", "pay order"], mode="include"),
        ObjectTypeFilter(object_types=["items"], mode="exclude"),
    ]
)

filtered.write("filtered.sqlite")

Command line

The package also ships an ocelescope command-line entry point:

ocelescope --help

Typing

This package is fully type-hinted and ships a PEP 561 py.typed marker, so type checkers such as mypy, pyright and ty pick up its types automatically — no extra stubs required.

About

Part of Ocelescope, a framework for working with Object-Centric Event Logs developed at the Chair of Process and Data Science (PADS), RWTH Aachen University.

📖 Documentation: https://www.ocelescope.org

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocelescope-0.6.0.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

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

ocelescope-0.6.0-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file ocelescope-0.6.0.tar.gz.

File metadata

  • Download URL: ocelescope-0.6.0.tar.gz
  • Upload date:
  • Size: 76.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ocelescope-0.6.0.tar.gz
Algorithm Hash digest
SHA256 016e993d3ec34c72decdc789665cc3286b11a030e24567dffea0a7fec822c23c
MD5 807ec897ed8595f1a6ffd897b5d34540
BLAKE2b-256 978056d4300bf9d4f758f8bddd59f9e45cf692e7a71718eabb7ba31b313d0727

See more details on using hashes here.

File details

Details for the file ocelescope-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: ocelescope-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 113.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ocelescope-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7ad3d7bd4c6791b2f45ef04323b01c184f212e4e4cf5160af7017aec53a361b
MD5 c0e1e0397fbefbff67e20b2fd3dadda2
BLAKE2b-256 f1bfca17ca3a411e4f07ae7345a313a2ce5b6ab54ecbbe0d03d003bbe6e7df6c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

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