def sha256_of_file(path):
    h = hashlib.sha256()

    with open(path, 'rb') as fh:
        chunk = 0
        while chunk != b'':
            chunk = fh.read(512)
            h.update(chunk)

    return h.hexdigest()
returns the SHA-256 hash in hex of the file
dataset/ETHPy150Open datastax/cstar_perf/frontend/cstar_perf/frontend/lib/util.py/sha256_of_file