MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / getCert

Method getCert

Algorithmia/CLI.py:378–385  ·  view source on GitHub ↗
(self, profile)

Source from the content-addressed store, hash-verified

376 return None
377
378 def getCert(self, profile):
379 key = self.getconfigfile()
380 config_dict = toml.load(key)
381 if 'profiles' in config_dict and profile in config_dict['profiles'] and \
382 config_dict['profiles'][profile]['ca_cert'] != "":
383 return config_dict['profiles'][profile]['ca_cert']
384 else:
385 return None
386
387 def getClient(self,profile):
388 apiAddress = self.getAPIaddress(profile)

Callers 3

getClientMethod · 0.95
test_auth_certMethod · 0.80
test_api_address_authMethod · 0.80

Calls 2

getconfigfileMethod · 0.95
loadMethod · 0.80

Tested by 2

test_auth_certMethod · 0.64
test_api_address_authMethod · 0.64