The PA library provides access to NCC's Performance Analyser API.
- Python 3.5, 3.6
- urllib3
- certifi
You can install this library with pip like so:
pip install paapi
Or by running setup.py
from a checkout of the code:
cd paapi
python setup.py install
from paapi import PaAuth, PaApi
auth = PaAuth('username', 'password', 'client_username', 'client_password')
realm = 12345
api = PaApi(auth, realm)
job_templates = api.get_all_jobtemplates()
for job_template in job_templates:
testruns = api.get_testruns_for_jobtemplate(job_template['sref'])
for testrun in testruns:
print(testrun['downloadDuration'])
See the LICENSE file for more info.