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

Method get_algorithm_id

Algorithmia/algorithm.py:41–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 return self
40
41 def get_algorithm_id(self):
42 url = '/v1/algorithms/' + self.username + '/' + self.algoname
43 print(url)
44 api_response = self.client.getJsonHelper(url)
45 if 'id' in api_response:
46 return api_response['id']
47 else:
48 raise Exception("field 'id' not found in response: ", api_response)
49
50
51 def get_secrets(self):

Callers 2

get_secretsMethod · 0.95
set_secretMethod · 0.95

Calls 1

getJsonHelperMethod · 0.80

Tested by

no test coverage detected