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

Method getAPIaddress

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

Source from the content-addressed store, hash-verified

367
368
369 def getAPIaddress(self, profile):
370 key = self.getconfigfile()
371 config_dict = toml.load(key)
372
373 if config_dict['profiles'][profile]['api_server'] != "":
374 return config_dict['profiles'][profile]['api_server']
375 else:
376 return None
377
378 def getCert(self, profile):
379 key = self.getconfigfile()

Callers 6

getClientMethod · 0.95
mainFunction · 0.80
test_authMethod · 0.80
test_auth_certMethod · 0.80
test_auth_tokenMethod · 0.80
test_api_address_authMethod · 0.80

Calls 2

getconfigfileMethod · 0.95
loadMethod · 0.80

Tested by 4

test_authMethod · 0.64
test_auth_certMethod · 0.64
test_auth_tokenMethod · 0.64
test_api_address_authMethod · 0.64