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

Method to_proxy

aleph/model/entity.py:58–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 db.session.add(self)
57
58 def to_proxy(self):
59 data = {
60 "id": self.id,
61 "schema": self.schema,
62 "properties": self.data,
63 "created_at": iso_text(self.created_at),
64 "updated_at": iso_text(self.updated_at),
65 "role_id": self.role_id,
66 "mutable": True,
67 }
68 return model.get_proxy(data, cleaned=False)
69
70 @classmethod
71 def create(cls, data, collection, sign=True, role_id=None):

Callers 7

updateMethod · 0.95
ingest_uploadFunction · 0.45
index_entityFunction · 0.45
crawl_directoryFunction · 0.45
upsert_entityFunction · 0.45
aggregate_modelFunction · 0.45
reingest_collectionFunction · 0.45

Calls 1

iso_textFunction · 0.90

Tested by

no test coverage detected