Metadata-Version: 2.1
Name: pm4py-wrapper
Version: 1.1.4
Summary: pm4py wrapper to call the original package from CLI
License: GPL-3.0
Author: Ihar Suvorau
Author-email: ihar.suvorau@gmail.com
Requires-Python: >=3.9,<3.11
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: click (>=8.0.4,<9.0.0)
Requires-Dist: cvxopt (>=1.3.0,<2.0.0)
Requires-Dist: pandas (>=1.4.1,<2.0.0)
Requires-Dist: pm4py (>=2.2.19,<3.0.0)
Requires-Dist: pytest (>=7.0.1,<8.0.0)
Requires-Dist: scipy (>=1.8.0,<2.0.0)
Description-Content-Type: text/markdown

# pm4py-wrapper

CLI wrapper for pm4py.

## Installation

Install using [pip](https://pip.pypa.io/en/stable/installation/):

```shell
pip install pm4py-wrapper
```

### Known Issues for macOS with M1

#### cvxopt@1.3.0: umfpack.h is missing

- Discussion is at https://github.com/cvxopt/cvxopt/issues/78.
- Solution:
  - Install `suite-sparse`
  - Specify `CPPFLAGS` and `LDFLAGS`
  - Run `pip install cvxopt`
- More details at http://cvxopt.org/install/index.html

```shell
$ brew info suite-sparse
$ export CPPFLAGS="-I/opt/homebrew/include/"
$ export LDFLAGS="-L/opt/homebrew/lib"
$ pip install cvxopt
```

#### scipy@1.6.1

- Discussion is at https://github.com/scipy/scipy/issues/13409
- Solution: use a newer version starting from 1.7.0

## Usage

```
Usage: pm4py_wrapper [OPTIONS] COMMAND [ARGS]...

Options:
  -i, --input_log PATH   Path to the input event log.  [required]
  -o, --output_dir PATH  Path to the output directory.
  --help                 Show this message and exit.

Commands:
  csv-to-xes
  xes-to-csv

```

Examples:

```shell
$ pm4py_wrapper -i tests/assets/input/Production.xes -o tests/assets/output xes-to-csv
$ pm4py_wrapper -i tests/assets/input/Production.csv -o tests/assets/output csv-to-xes
```

## Links

- A helpful [answer](https://stackoverflow.com/questions/57628064/automating-python-package-release-process#answer-57676367) on StackOverflow on how to do CI/CD with Poetry.

