API Docs¶
-
class
multihash.MultiHash(data=None, hashers=None)¶ A class which effeciently generates multiple hashes.
-
__init__(data=None, hashers=None)¶ Create a new MultiHash instance.
-
copy(*args, **kwargs)¶ Return a dictionary containing copies of all the hashers.
- Return type
-
digest(*args, **kwargs)¶ Return a dictionary containing all the digests.
-
classmethod
from_filepath(filepath, hashers=None, chunksize=128000000)¶ Instantiate a new MultiHash and hash a file located at some file path.
-
classmethod
from_stream(stream, hashers=None, chunksize=128000000)¶ Instantiate a new MultiHash and hash a .read()-able thing.
-
property
hashers¶ Return a set of all the contained “hashers”.
- Return type
-
hexdigest(*args, **kwargs)¶ Return a dictionary containing all the hexdigests.
-