Skip to main content

Generate realistic synthetic process event logs for testing and developing process mining software

Project description

ProcessLog

Generate realistic synthetic event logs for building and testing process-mining software.

PyPI Python 3.10+ license: MIT

ProcessLog turns a small YAML description of a process into a realistic event log — seeded and reproducible, with resource pools, working calendars, probabilistic variants, and custom attributes — and exports it as CSV, NDJSON, Parquet, or IEEE XES. Every format imports straight into PM4Py, no reshaping.

It's the data source for when you're developing a process-mining tool and don't have (or can't share) real logs.

What it is

   process definition          ProcessLog              event log
       (YAML)        ──────▶   generate, seeded   ──▶  CSV · NDJSON · Parquet · XES
                                                        PM4Py-ready · IEEE XES 1849-2023
  • Standards-clean output — CSV, NDJSON, Parquet, and XES, all directly importable into PM4Py; XES is IEEE 1849-2023 compliant with proper namespaces.
  • Realistic dynamics — resource pools with speed/consistency, working calendars (business hours, weekends, holidays), probabilistic branching into named process variants, and domain attributes (cost, priority, region, …).
  • Reproducible — a seed pins the entire run, so regression fixtures stay byte-stable.
  • Configured, not coded — one self-documenting YAML file describes the whole process.

Pairs with mining-lib — the logs you generate here render directly in it, an embeddable browser viewer for interactive Directly-Follows Graphs.

Example

A few rows of a generated CSV — the standard XES column names, ready for PM4Py:

case:concept:name,concept:name,time:timestamp,org:resource,lifecycle:transition
case_0001,submitted,2024-01-02 09:00:00-05:00,,complete
case_0001,intake_validation,2024-01-02 10:30:00-05:00,clerk_002,complete
case_0001,review_in_progress,2024-01-03 09:15:00-05:00,reviewer_001,complete
case_0001,approved,2024-01-05 14:20:00-05:00,reviewer_001,complete

Drop that log into mining-lib and you get an interactive process map:

A ProcessLog-generated log rendered as an interactive Directly-Follows Graph in mining-lib.

How to use

pip install processlog          # add [xes] for XES export: pip install "processlog[xes]"

Generate a log from a config — the CLI is the quickest path:

processlog generate -c configs/process_config.yaml -n 1000   # 1000 cases, all formats
processlog validate -c configs/process_config.yaml           # check a config
processlog info     -c configs/process_config.yaml           # summarise the process

Or from Python:

from processlog import load_config, generate_log, export_csv

config = load_config("configs/process_config.yaml")
df = generate_log(config, seed=42, num_cases=1000)
export_csv(df, "events.csv")

The full CLI, Python API, config schema, and output format live in docs/USAGE.md.

Develop

git clone https://github.com/crlsrmrlsz/processlog.git
cd processlog
python3 -m venv venv && source venv/bin/activate
pip install -e ".[dev]"
pytest

License

MIT — see LICENSE.

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

processlog-1.2.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

processlog-1.2.1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file processlog-1.2.1.tar.gz.

File metadata

  • Download URL: processlog-1.2.1.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for processlog-1.2.1.tar.gz
Algorithm Hash digest
SHA256 b5a4248ee7861dc6b45f1426e522b75dbb147e0a1eae62424dbaca3b34d2fc62
MD5 dd0dd78936a29b81152f8d4aafcf57ac
BLAKE2b-256 c47b04c51be51a5f4e26a05e40baee432527d23750cef44747f600ae83ff0c96

See more details on using hashes here.

Provenance

The following attestation bundles were made for processlog-1.2.1.tar.gz:

Publisher: release.yml on crlsrmrlsz/processlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file processlog-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: processlog-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for processlog-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c761fd69152b9b3228e507ec2ef92d835fb3db02dedc7e8312acde0c38ca8879
MD5 ba43d8e329fa57c0e17f6a876c824a04
BLAKE2b-256 54383cdbd6de4022a22b9ddb4310a6539e793e1057b30ebeb751414a5aa9b7f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for processlog-1.2.1-py3-none-any.whl:

Publisher: release.yml on crlsrmrlsz/processlog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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