antimatter.utils.client
#
Module Contents#
Classes#
This is a wrapper around the real client which checks for the security scope of the client |
Functions#
|
Get the base client for the API. |
- class antimatter.utils.client.ClientWrapper(real_client: antimatter_api.ApiClient, supported_auth_type: str = None)#
This is a wrapper around the real client which checks for the security scope of the client It is checking the auth_settings in the kwargs of the param_serialize method and verifying the permissions of the client. If the permissions are not valid, it will raise a PermissionError.
- antimatter.utils.client.get_base_client(enable_retries: bool = True) antimatter_api.ApiClient #
Get the base client for the API.
- Parameters:
enable_retries – If True, retry gateway, DNS, and general connection errors