MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / get_checksum

Function get_checksum

aura/analyzers/wheel.py:18–23  ·  view source on GitHub ↗
(alg: str, path: Path)

Source from the content-addressed store, hash-verified

16
17
18def get_checksum(alg: str, path: Path) -> str:
19 h = hashlib.new(alg)
20 with path.open("rb") as fd:
21 h.update(fd.read())
22
23 return base64.urlsafe_b64encode(h.digest()).decode("ascii").rstrip("=")
24
25
26@Analyzer.ID("wheel")

Callers 1

analyze_wheelFunction · 0.85

Calls 1

readMethod · 0.80

Tested by

no test coverage detected