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

Method list_languages

Algorithmia/CLI.py:299–308  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

297 return json.dumps(response['environments'], indent=1)
298
299 def list_languages(self, client):
300 response = client.get_supported_languages()
301 table = []
302 if "error" not in response:
303 table.append("{:<25} {:<35}".format('Name', 'Description'))
304 for lang in response:
305 table.append("{:<25} {:<35}".format(lang['name'], lang['display_name']))
306 else:
307 table.append(json.dumps(response))
308 return table
309
310 def getBuildLogs(self, user, algo, client):
311 api_response = client.algo(user + '/' + algo).get_builds()

Callers 2

mainFunction · 0.80
test_list_languagesMethod · 0.80

Calls 1

Tested by 1

test_list_languagesMethod · 0.64