MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / _hash

Function _hash

botasaurus/cache.py:50–55  ·  view source on GitHub ↗
( data)

Source from the content-addressed store, hash-verified

48 return cache_path
49
50def _hash( data):
51 # Serialize the data to a JSON string and encode to bytes
52 serialized_data = json.dumps(data).encode('utf-8')
53
54 # Generate a hash from the serialized data
55 return md5(serialized_data).hexdigest()
56
57
58def _has(cache_path):

Callers 1

hashMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected