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

Method getJson

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

Source from the content-addressed store, hash-verified

230 with open(self.path, 'r') as f: return f.read()
231
232 def getJson(self):
233 exists, error = self.existsWithError()
234 if not exists:
235 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
236 return json.loads(open(self.path, 'r').read())
237
238 def exists(self):
239 return self.existsWithError()[0]

Callers

nothing calls this directly

Calls 3

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90
readMethod · 0.80

Tested by

no test coverage detected