MCPcopy Create free account
hub / github.com/algorithmiaio/algorithmia-python / set_attributes

Method set_attributes

Algorithmia/datafile.py:28–30  ·  view source on GitHub ↗
(self, attributes)

Source from the content-addressed store, hash-verified

26 self.size = None
27
28 def set_attributes(self, attributes):
29 self.last_modified = datetime.strptime(attributes['last_modified'], '%Y-%m-%dT%H:%M:%S.%fZ')
30 self.size = attributes['size']
31
32 # Deprecated:
33 def get(self):

Callers 2

_iterate_filesMethod · 0.95
test_set_attributesMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_set_attributesMethod · 0.76