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
Metadata
Release files for ocelescope 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocelescope-0.10.1.tar.gz | 73.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocelescope-0.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 182.1 kB
Release files / ocelescope-0.10.1.tar.gz
| Download URL | ocelescope-0.10.1.tar.gz |
|---|---|
| Size | 73.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
725f0e41e83120702bd9351482cfb0869df6ea40bf4ffff05354ef530c8c2fc8
|
|
BLAKE2b-256 checksum How to use checksums |
5575be2c95ba47ee92d46919ac54bc8ba7d46ace7ba57369f631c11b263ec57f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|
Release files / ocelescope-0.10.1-py3-none-any.whl
| Download URL | ocelescope-0.10.1-py3-none-any.whl |
|---|---|
| Size | 108.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
554972a6dccd769f5e161e35e56fd687fa8cf2f9ab7c078caf7f554828d9578b
|
|
BLAKE2b-256 checksum How to use checksums |
65b82828d4669f71bebc7e8e8bdddd035cd8d7a080a3ca6d55f618284d7cdf30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|