Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.03 KB

File metadata and controls

41 lines (33 loc) · 1.03 KB

ampfactor-demo-client

Demo client script to trigger aristotle ampfactor service and wait for response.

Running the script

Setting up virtual environment

Create virtual environment

python -m venv env

Activate virtual environment, on windows:

.\env\Scripts\activate

or on linux:

source env/bin/activate

Install dependencies inside virtual environment

pip install -r requirements.txt

Getting credentials

Configuration parameters in the top of the script contain some secrets that should not be added to source control. These instead contain placeholders (<REPLACE_ME>). The contents of these need to be provided separately.

Running the script

Make sure the virtual environment is activated, then run:

python demo_client.py <job_id>

where <job_id> is replaced with the integer job id from HySEA. The script has been tested with job_id 16761.

When the script finishes, it will print the service response, and construct a URL to the generated report available for download.