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

Method getBytes

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

Source from the content-addressed store, hash-verified

73 return name
74
75 def getBytes(self):
76 exists, error = self.existsWithError()
77 if not exists:
78 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
79 # Make HTTP get request
80 return self.client.getHelper(self.url).content
81
82 def getString(self):
83 exists, error = self.existsWithError()

Callers 1

test_read_typesMethod · 0.45

Calls 3

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90
getHelperMethod · 0.80

Tested by 1

test_read_typesMethod · 0.36