MCPcopy Create free account
hub / github.com/diffgram/diffgram / get_signed_url

Method get_signed_url

shared/database/source_control/file.py:337–353  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

335 }
336
337 def get_signed_url(self, session):
338 if self.type == "image":
339 if self.image:
340 serialized = self.image.serialize_for_source_control(session, refrence_file = self)
341 return serialized['url_signed']
342 # Do we want to throw an error here? should be pretty rare no image if type image
343
344 if self.type == "video":
345 if self.video:
346 self.video.regenerate_url(session, self.project)
347 return self.video.file_signed_url
348
349 if self.type == "text":
350 if self.text_file:
351 serialized = self.text_file.serialize(session)
352 return serialized['url_signed']
353 return None
354
355 def get_blob_path(self):
356 if self.type == "image":

Callers 1

send_diffgram_taskMethod · 0.80

Calls 3

regenerate_urlMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected