MCPcopy Index your code
hub / github.com/diffgram/diffgram / build_packet

Function build_packet

shared/export/export_generation.py:309–327  ·  view source on GitHub ↗
(file,
                 session = None)

Source from the content-addressed store, hash-verified

307
308
309def build_packet(file,
310 session = None):
311 if file.type == "video":
312 return build_video_packet(file, session)
313
314 if file.type == "geospatial":
315 return build_geopacket(file, session)
316
317 if file.type == "image":
318 return build_image_packet(file, session)
319
320 if file.type == "text":
321 return build_text_packet(file, session)
322
323 if file.type == "sensor_fusion":
324 return build_sensor_fusion_packet(file, session)
325
326 if file.type == "compound":
327 return build_compound_file_packet(file, session)
328
329
330def build_compound_file_packet(file: File, session: Session):

Callers 2

annotation_export_coreFunction · 0.85

Calls 6

build_video_packetFunction · 0.85
build_geopacketFunction · 0.85
build_image_packetFunction · 0.85
build_text_packetFunction · 0.85

Tested by

no test coverage detected