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

Method getAPIkey

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

Source from the content-addressed store, hash-verified

348 return response
349
350 def getAPIkey(self, profile):
351 key = self.getconfigfile()
352 config_dict = toml.load(key)
353 if 'profiles' in config_dict and profile in config_dict['profiles'] and \
354 config_dict['profiles'][profile]['api_key'] != "":
355 return config_dict['profiles'][profile]['api_key']
356 else:
357 return None
358
359 def getBearerToken(self,profile):
360 key = self.getconfigfile()

Callers 5

runalgoMethod · 0.95
getClientMethod · 0.95
test_authMethod · 0.80
test_auth_certMethod · 0.80
test_api_address_authMethod · 0.80

Calls 2

getconfigfileMethod · 0.95
loadMethod · 0.80

Tested by 3

test_authMethod · 0.64
test_auth_certMethod · 0.64
test_api_address_authMethod · 0.64