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

Method getJson

Algorithmia/datafile.py:89–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 return self.client.getHelper(self.url).text
88
89 def getJson(self):
90 exists, error = self.existsWithError()
91 if not exists:
92 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
93 # Make HTTP get request
94 return self.client.getHelper(self.url).json()
95
96 def getNumpy(self):
97 exists, error = self.existsWithError()

Callers 1

test_putJson_getJsonMethod · 0.45

Calls 3

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90
getHelperMethod · 0.80

Tested by 1

test_putJson_getJsonMethod · 0.36