Skip to content

ncc-tools/python-pa-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PA API Client Library

The PA library provides access to NCC's Performance Analyser API.

Dependencies

  • Python 3.5, 3.6
  • urllib3
  • certifi

Installing

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

Quick Start Example

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'])

License

See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages