dantro._hash module¶
This module implements a deterministic hash function to use within dantro.
It is mainly used for all things related to the TransformationDAG.
-
dantro._hash._hash(s: str) → str[source]¶ Returns a deterministic hash of the given string.
This uses the hashlib.md5 algorithm which returns a hexadecimal digest of length 32.
Note
This hash is meant to be used as a checksum, not for security.
- Parameters
s (str) – The string to create the hash of
- Returns
The 32 character hexadecimal md5 hash digest
- Return type
str