You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Could you compute and publish the sha256 hashes for your ani-1_dataset.tar.gz file and include them in your README? This will help users to ensure that the data that they download has not been manipulated by some third party.
You can easily compute a hash using:
fromhashlibimportsha256defhash_check(fname, hash_fn=sha256):
"""Reads in data from disk and returns hash Parameters ---------- fname : str | Path hash_fn : Callable[[], Hash], optional (default=hashlib.sha256) Examples -------- Checking sha256 hash.. >>> from hashlib import sha256 >>> hash_check('./text.txt, sha256) 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2' """hash_fn=hash_fn()
withopen(fname, "rb") asf:
forchunkiniter(lambda: f.read(4096), b""):
hash_fn.update(chunk)
returnhash_fn.hexdigest()
Thanks!
The text was updated successfully, but these errors were encountered:
Hello! Could you compute and publish the sha256 hashes for your
ani-1_dataset.tar.gz
file and include them in your README? This will help users to ensure that the data that they download has not been manipulated by some third party.You can easily compute a hash using:
Thanks!
The text was updated successfully, but these errors were encountered: