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

Method read

Algorithmia/datafile.py:306–314  ·  view source on GitHub ↗
(self, __size=None)

Source from the content-addressed store, hash-verified

304 return False
305
306 def read(self, __size=None):
307 if not self.local_file:
308 self.local_file = self.getFile()
309 output = self.local_file.read()
310 elif __size:
311 output = self.local_file.read(__size)
312 else:
313 output = self.local_file.read()
314 return output
315
316 def readline(self, __size=None):
317 if not self.local_file:

Callers 9

test_putJson_getJsonMethod · 0.95
catCertsMethod · 0.80
getBytesMethod · 0.80
getStringMethod · 0.80
getJsonMethod · 0.80
runalgoMethod · 0.80
md5_for_fileFunction · 0.80
test_read_typesMethod · 0.80
test_get_nonexistantMethod · 0.80

Calls 1

getFileMethod · 0.45

Tested by 3

test_putJson_getJsonMethod · 0.76
test_read_typesMethod · 0.64
test_get_nonexistantMethod · 0.64