Skip to content

base

ClientBase(server_address, auth_header, api_version, endpoints, server_name, verify=True, max_retries=None, pool_maxsize=None, pool_block=None, over_client=None)

Bases: object

server_version: Optional[Version] property

The version of the service running on the remote server. Note that this refers to the software running on the server and has nothing to do with the version of the datastack itself.

raise_for_status(r, log_warning=True) staticmethod

Raises requests.HTTPError, if one occurred.

handle_response(response, as_json=True, log_warning=True)

Deal with potential errors in endpoint response and return json for default case

parametrized(dec)

This decorator allows you to easily create decorators that take arguments