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

Function create_export

aleph/logic/export.py:105–122  ·  view source on GitHub ↗
(
    operation,
    role_id,
    label,
    collection=None,
    mime_type=None,
    meta=None,
)

Source from the content-addressed store, hash-verified

103
104
105def create_export(
106 operation,
107 role_id,
108 label,
109 collection=None,
110 mime_type=None,
111 meta=None,
112):
113 export = Export.create(
114 operation,
115 role_id,
116 label,
117 collection=collection,
118 mime_type=mime_type,
119 meta=meta,
120 )
121 db.session.commit()
122 return export
123
124
125def complete_export(export_id, file_path, file_name):

Callers 4

exportFunction · 0.90
exportFunction · 0.90
setUpMethod · 0.90
setUpMethod · 0.90

Calls 1

createMethod · 0.45

Tested by 2

setUpMethod · 0.72
setUpMethod · 0.72