# pm4py-distr Support for distributed logs and computations in PM4Py.
See the currently supported API in api.txt
To execute locally an example (one master running on 5001 and two slaves running on 5002 and 5003) just run “python main.py”
The example contains the partitioned version of the logs “receipt” and “roadtraffic”.
## Example of usage of the distributed services (default keyphrase is “hello”):
ALLOCATION OF THE PARTITIONS BETWEEN THE SLAVES
http://localhost:5001/doLogAssignment?keyphrase=hello
CALCULATION OF THE DFG
http://localhost:5001/calculateDfg?keyphrase=hello&process=receipt
## Configuration of the keyphrase
The keyphrase that is shared between the slaves and the master is contained in the pm4pydistr.configuration file.
## Custom executions of master/slave
If instead of running the default example, you want to execute the master/slaves in custom configuration, follow the process:
REMOVE THE EXAMPLE FILES
Remove the “master.db” database and the “master” folder
CREATE A “master” FOLDER CONTAINING THE PARTITIONED DATASETS THAT YOU WANT TO USE
See the PARTITIONING.txt file for instructions on how to partition a log file into a partitioned dataset!
LAUNCH THE MASTER
Launch the master with the command: python launch.py –type master –conf master –port 5001 (replace possibly the port, it is by default listening on 0.0.0.0)
LAUNCH THE SLAVES
Launch a slave (that are master-aware) with the command:
python launch.py –type slave –conf slave1 –port 5002 –master-host 127.0.0.1 –master-port 5001 (replace possibly the port used by the slave, and the host/port that points to the master).
## Demo on a custom server
It may work, or it may not work :)
Distributed DFG calculation:
http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=roadtraffic
http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=bpic2018
http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=bpic2019
Retrieval of the start activities of the log:
http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=roadtraffic
http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=bpic2018
http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=bpic2019
Retrieval of the end activities of the log:
http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=roadtraffic
http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=bpic2018
http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=bpic2019
Metadata
Release files for pm4pydistr 0.1.55
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pm4pydistr-0.1.55.tar.gz | 6.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pm4pydistr-0.1.55-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 MB
Release files / pm4pydistr-0.1.55.tar.gz
| Download URL | pm4pydistr-0.1.55.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b7cfebbb2d7f5a8f2b51c6a60abe7dc1dc2916c301bfa84a7c1524010b64657
|
|
BLAKE2b-256 checksum How to use checksums |
129c229a6926d0159d9e1688d5500d7bb4174a3429c1fd60066445f33830d041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Release files / pm4pydistr-0.1.55-py3-none-any.whl
| Download URL | pm4pydistr-0.1.55-py3-none-any.whl |
|---|---|
| Size | 84.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea08bd05c27357ddd939e7bf90150d6535ddb72874c83376ccdcd602d8080cdf
|
|
BLAKE2b-256 checksum How to use checksums |
3833a41c36cbf3f349e7e8b9b51c56a7bede4bcc498f2cfddc94e74d416cce3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Security for pm4pydistr 0.1.55
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.