def __init__(
        self,
        auth_id,
        auth_token,
        standardize=False,
        invalid=False,
        logging=True,
        accept_keypair=False,
        truncate_addresses=False,
        timeout=None,
    ):
        """
        Constructs the client

        :param auth_id: authentication ID from SmartyStreets
        :param auth_token: authentication token
        :param standardize: boolean include addresses that match zip+4 in addition to DPV confirmed
                addresses
        :param invalid: boolean to include address candidates that may not be deliverable
        :param logging: boolean to allow SmartyStreets to log requests
        :param accept_keypair: boolean to toggle default keypair behavior
        :param truncate_addresses: boolean to silently truncate address lists in excess of the
                SmartyStreets maximum rather than raise an error.
        :param timeout: optional timeout value in seconds for requests.
        :return: the configured client object
        """
        self.auth_id = auth_id
        self.auth_token = auth_token
        self.standardize = standardize
        self.invalid = invalid
        self.logging = logging
        self.accept_keypair = accept_keypair
        self.truncate_addresses = truncate_addresses
        self.timeout = timeout
        self.session = requests.Session()
        self.session.mount(self.BASE_URL, requests.adapters.HTTPAdapter(max_retries=5))
def __init__ ( self , auth_id , auth_token , standardize = False , invalid = False , logging = True , accept_keypair = False , truncate_addresses = False , timeout = None , ) : self . auth_id = auth_id self . auth_token = auth_token self . standardize = standardize self . invalid = invalid self . logging = logging self . accept_keypair = accept_keypair self . truncate_addresses = truncate_addresses self . timeout = timeout self . session = requests . Session ( ) self . session . mount ( self . BASE_URL , requests . adapters . HTTPAdapter ( max_retries = 5 ) )
Constructs the client

        :param auth_id: authentication ID from SmartyStreets
        :param auth_token: authentication token
        :param standardize: boolean include addresses that match zip+4 in addition to DPV confirmed
                addresses
        :param invalid: boolean to include address candidates that may not be deliverable
        :param logging: boolean to allow SmartyStreets to log requests
        :param accept_keypair: boolean to toggle default keypair behavior
        :param truncate_addresses: boolean to silently truncate address lists in excess of the
                SmartyStreets maximum rather than raise an error.
        :param timeout: optional timeout value in seconds for requests.
        :return: the configured client object