cherwellapi

apiclient Class

Cherwell API Client Class

exception cherwellapi.apiclient.CherwellAPIClientAuthenticationError[source]

Bases: Exception

exception cherwellapi.apiclient.CherwellAPIClientError[source]

Bases: Exception

class cherwellapi.apiclient.Client(host=None, user=None, password=None, client_id=None, ssl_verify=None)[source]

Bases: object

Client class to access the Cherwell API

get_router(router)[source]

Instantiates and returns a Cherwell router object

Parameters:

router (str) – The API router to use

get_router_methods(router)[source]

List all available methods for an API router

Parameters:

router (str) – The router to get methods from

Return type:

list

get_routers()[source]

Gets the list of availble Cherwell API routers

Return type:

list

cherwellapi.apiclient.strtobool(_string)[source]

Converts a string to a boolean, replaces distutils.utils.strtobool (deprecated per PEP 632)