MCPcopy Create free account
hub / github.com/alephdata/aleph / serialize

Method serialize

aleph/views/serializers.py:53–58  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

51 return data
52
53 def serialize(self, obj):
54 obj = self._to_dict(obj)
55 if obj is not None:
56 self.collect(obj)
57 resolver.resolve(request)
58 return self._serialize_common(obj)
59
60 def serialize_many(self, objs):
61 collected = []

Callers 7

export_entityFunction · 0.80
resolveMethod · 0.80
jsonifyMethod · 0.80
_serializeMethod · 0.80
createFunction · 0.80
generate_api_keyFunction · 0.80
statusFunction · 0.80

Calls 4

_to_dictMethod · 0.95
collectMethod · 0.95
_serialize_commonMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected