datalad_next.utils.MultiHash

class datalad_next.utils.MultiHash(algorithms: list[str])[source]

Bases: object

Compute any number of hashes as if computing just one

Supports any hash algorithm supported by the hashlib module of the standard library.

get_hexdigest() Dict[str, str][source]

Returns a mapping of algorithm name to hexdigest for all algorithms

update(data: ByteString) None[source]

Updates all configured digests