Giter Club home page Giter Club logo

event-log-converter's Introduction

Event Log Converter

crates.io

CLI tool to convert event logs from one format to another fast and efficiently.

Supports the following conversions:

  • XES to CSV
  • CSV to XES

Usage

$ event-log-converter -i filename.xes xes-to-csv

More on usage:

Usage: event_log_converter [OPTIONS] --input-log <INPUT_LOG> <COMMAND>

Commands:
  xes-to-csv  
  csv-to-xes  
  help        Print this message or the help of the given subcommand(s)

Options:
  -i, --input-log <INPUT_LOG>    The input event log path
  -o, --output-dir <OUTPUT_DIR>  The output directory for the converted log [default: .]
  -n, --no-start-events          Filter out Start and End events if present in the log
  -c, --case <CASE>              Case ID column name [default: case]
  -a, --activity <ACTIVITY>      Activity column name [default: activity]
  -r, --resource <RESOURCE>      Resource column name [default: resource]
  -s, --start-time <START_TIME>  Start timestamp column name [default: start_time]
  -e, --end-time <END_TIME>      End timestamp column name [default: end_time]
  -v, --variant <VARIANT>        Variant column name [default: variant]
  -h, --help                     Print help information
  -V, --version                  Print version information

Runtime Performance

15x improvement over pm4py in runtime.

A simplistic comparison of running time for the conversion of a 175 MB XES file to CSV and back to XES:

Tool Conversion Type User Time System Time CPU Usage Total Time
pm4py_wrapper XES to CSV 15.20s 4.85s 111% 17.943s
pm4py_wrapper CSV to XES 28.33s 5.28s 113% 29.682s
event_log_converter XES to CSV 1.01s 0.11s 99% 1.129s
event_log_converter CSV to XES 0.77s 0.19s 99% 0.966s

Memory Usage

3x improvement over pm4py in memory usage.

175 MB XES file to CSV conversion:

pm4py_wrapper-175M event_log_converter-175M-release

event-log-converter's People

Contributors

iharsuvorau avatar

Watchers

 avatar  avatar

event-log-converter's Issues

Cargo build error

Hello there,

after downloading the project and trying to build it with cargo build I get the following error:

error[E0554]: #![feature] may not be used on the stable release channel
--> src/lib.rs:1:12
|
1 | #![feature(slice_group_by)]
|

Could you change this so that it is possible to use a stable release?

Regards,
Sebastian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.