MutaPath
MutaPath.read_hash()
Calculate given hash for this file.
List of supported hashes can be obtained from hashlib package. This reads the entire file.
hashlib
See also
hashlib.hash.digest()