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

Function getDefaultClient

Algorithmia/__init__.py:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35# Used internally to get default client
36def getDefaultClient():
37 global defaultClient
38 # Check for default client, and ensure default API key has not changed
39 if defaultClient is None or defaultClient.apiKey is not apiKey:
40 # Construct default client
41 defaultClient = Client(apiKey)
42 return defaultClient
43
44# Used internally to get default api client
45def getApiAddress():

Callers 3

algoFunction · 0.85
fileFunction · 0.85
dirFunction · 0.85

Calls 1

ClientClass · 0.90

Tested by

no test coverage detected