MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / sha256_file

Function sha256_file

scripts/finalize_windows_dist.py:78–83  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

76
77
78def sha256_file(path: Path) -> str:
79 h = hashlib.sha256()
80 with path.open("rb") as f:
81 for block in iter(lambda: f.read(CHUNK), b""):
82 h.update(block)
83 return h.hexdigest()
84
85
86def hash_zip_contents(zip_path: Path) -> list[dict]:

Callers 1

write_manifestsFunction · 0.85

Calls 2

updateMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected