MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / checksum

Function checksum

plugin/app/utils.py:72–82  ·  view source on GitHub ↗

Returns the SHA256 checksum of the given data. :param data: The data to checksum. :return: The SHA256 checksum of the given data.

(data)

Source from the content-addressed store, hash-verified

70
71
72def checksum(data) -> str:
73 """
74 Returns the SHA256 checksum of the given data.
75
76 :param data: The data to checksum.
77 :return: The SHA256 checksum of the given data.
78 """
79 data_str = json.dumps(data, sort_keys=True)
80 hash_object = hashlib.sha256()
81 hash_object.update(data_str.encode())
82 return hash_object.hexdigest()
83
84
85def i18n_text(

Callers 3

load_bundle_dataFunction · 0.90
set_i18n_checksumFunction · 0.90
load_plugin_dataFunction · 0.90

Calls 2

updateMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected