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.4.0.tar.gz (73.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.4.0-py3-none-any.whl (109.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocelescope-0.4.0.tar.gz
  • Upload date:
  • Size: 73.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.4.0.tar.gz
Algorithm Hash digest
SHA256 65a78b2d59d159fb1326448d4c3d2ebf5698cc7ba9c7fb749878d8878ed3db15
MD5 9c1aca299022ef485a146427346acf69
BLAKE2b-256 de2e5ba407ee6b001ce661dfb59a632d8eb818c508d141812a3a154c878c6b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocelescope-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f71ff464dd52ce729a5be6ef662b6bb94dd6cfcc62096736851289fc70cb5c4
MD5 78a6eca06b1dc5eb22f4ec962f8bfb79
BLAKE2b-256 2744e7648eeeb74eaece455c8b21213ea19398d3ed3e45ca3ac468b45ff19c63

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

This release

0.4.0 This release

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