MCPcopy Create free account
hub / github.com/modelscope/modelscope / hash_name

Method hash_name

modelscope/hub/utils/caching.py:157–158  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

155 self.load_cache()
156
157 def hash_name(self, key):
158 return hashlib.sha256(key.encode()).hexdigest()
159
160
161class ModelFileSystemCache(FileSystemCache):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected