Skip to content

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

Notifications You must be signed in to change notification settings

norwegian-geotechnical-institute/ampfactor-demo-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages