prefect.utilities.hashing
Functions
stable_hash
*args: Items to include in the hash.hash_algo: Hash algorithm from hashlib to use.
- A hex hash.
file_hash
path: the path to a filehash_algo: Hash algorithm from hashlib to use.
- a hash of the file contents
hash_objects
*args: Positional arguments to hashhash_algo: Hash algorithm to useraise_on_failure: If True, raise exceptions instead of returning None**kwargs: Keyword arguments to hash
- A hash string or None if hashing failed
HashError: If objects cannot be hashed and raise_on_failure is True