This utility translate PETs into human readable form as defined in Platform Event Trap Format Specification v1.0 [1].
Before running the script, install all python libraries:
$ pip install -r requirements.txt
Run:
$ PYTHONPATH=`pwd` python cli/pet_decoder.py --help
Using flask.
Run:
$ export FLASK_APP="web.main:app"
$ python -m flask run
Currently also deployed at heroku: https://pet-decoder.herokuapp.com/
[1] https://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/platform-event-trap.pdf