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

Function localPutHelper

Algorithmia/datafile.py:275–281  ·  view source on GitHub ↗
(path, contents)

Source from the content-addressed store, hash-verified

273
274
275def localPutHelper(path, contents):
276 try:
277 with open(path, 'wb') as f:
278 f.write(contents)
279 return dict(status='success')
280 except Exception as e:
281 return dict(error=str(e))
282
283
284class AdvancedDataFile(DataFile, RawIOBase):

Callers 2

putJsonMethod · 0.85
putFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected