nur-dev's picture
Publish reproducibility artifacts (part 2)
fe31b61 verified
Raw History Blame Contribute Delete
260 Bytes
"""Exact helper functions extracted from the frozen source adapter."""
import hashlib
from pathlib import Path
def sha(path):
h=hashlib.sha256()
with Path(path).open('rb') as f:
while part:=f.read(8<<20):h.update(part)
return h.hexdigest()