MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / md5

Method md5

scratchattach/editor/asset.py:42–49  ·  view source on GitHub ↗

Compute/retrieve the md5 hex-digest of the asset file data

(self)

Source from the content-addressed store, hash-verified

40
41 @property
42 def md5(self) -> str:
43 """
44 Compute/retrieve the md5 hex-digest of the asset file data
45 """
46 if self._md5 is None:
47 self._md5 = md5(self.data).hexdigest()
48
49 return self._md5
50
51 @property
52 def sha256(self) -> str:

Callers 3

upload_assetMethod · 0.80
create_soundMethod · 0.80
create_costumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected