config.hash_and_encode_yaml#

autoclean.utils.config.hash_and_encode_yaml(content, is_file=True)[source]#

Hash and encode a YAML file or dictionary.

Parameters:
contentstr or dict

The content to hash and encode.

is_filebool

Whether the content is a file path.

Returns:
file_hashstr

The hash of the content.

compressed_encodedstr

The compressed and encoded content.