def __init__(self, endpoint, processes=<NUM_LIT:1>):
self.processes = processes<EOL>if endpoint.endswith('<STR_LIT:/>'):  <EOL><INDENT>self.url_endpoint_root = endpoint[<NUM_LIT:0>:-<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>self.url_endpoint_root = endpoint<EOL><DEDENT>self.session = requests.Session()<EOL>self.session.header = {'<STR_LIT:Content-Type>': '<STR_LIT:application/json>'}<EOL>methods = ['<STR_LIT:POST>', '<STR_LIT>', '<STR_LIT:GET>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>http_retry = Retry(total=<NUM_LIT:5>, connect=<NUM_LIT:5>, read=<NUM_LIT:5>, backoff_factor=<NUM_LIT:0.1>,<EOL>method_whitelist=methods)<EOL>https_retry = Retry(total=<NUM_LIT:5>, connect=<NUM_LIT:5>, read=<NUM_LIT:5>, backoff_factor=<NUM_LIT:0.1>,<EOL>method_whitelist=methods)<EOL>http_adapter = HTTPAdapter(max_retries=http_retry)<EOL>https_adapter = HTTPAdapter(max_retries=https_retry)<EOL>self.session.mount('<STR_LIT>', http_adapter)<EOL>self.session.mount('<STR_LIT>', https_adapter)<EOL>self.authenticated = False<EOL>self._token = None<EOL>self.proxies = None<EOL>self.timeout = None<EOL>
Initialize a client connection

:param endpoint: root endpoint (API URL)
:type endpoint: str