Box Platform Event Stream Poller
Runtime Requirements
Python 3.6+
PIP package manager
virtualenv
Set up and Run
- From the project root folder, create a Python 3.6+ virtual environment
$ virtualenv --python=python3 env
- Activate the virtual environment
$ source env/bin/activate
- Install the project dependencies
$ pip install -r requirements.txt
- Copy the configuration file at
configuration/example.yml
into the same directory. Name the file dev.yml - Add Box Platform JWT keys and event type names and handler function names to the configuration file at line 3
- Add Box Platform event types to process to the configuration file at line 13
- Run the CLI with a flag referencing the configuration filename without the .yml extension
$ python src/cli/main.py poll-events