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

Method getString

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

Source from the content-addressed store, hash-verified

224 return bts
225
226 def getString(self):
227 exists, error = self.existsWithError()
228 if not exists:
229 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
230 with open(self.path, 'r') as f: return f.read()
231
232 def getJson(self):
233 exists, error = self.existsWithError()

Callers

nothing calls this directly

Calls 3

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90
readMethod · 0.80

Tested by

no test coverage detected