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

Method getString

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

Source from the content-addressed store, hash-verified

80 return self.client.getHelper(self.url).content
81
82 def getString(self):
83 exists, error = self.existsWithError()
84 if not exists:
85 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
86 # Make HTTP get request
87 return self.client.getHelper(self.url).text
88
89 def getJson(self):
90 exists, error = self.existsWithError()

Callers 4

catMethod · 0.45
test_get_strMethod · 0.45
test_get_strMethod · 0.45

Calls 3

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90
getHelperMethod · 0.80

Tested by 3

test_get_strMethod · 0.36
test_get_strMethod · 0.36