mlops.hashing package
Submodules
mlops.hashing.hashing module
Contains hashing functions.
- mlops.hashing.hashing.get_hash_local(files_to_hash: Collection) str
Returns the MD5 hex digest string from hashing the content of all the given files on the local filesystem. The files are sorted before hashing so that the process is reproducible.
- Parameters
files_to_hash – A collection of paths to files whose contents should be hashed.
- Returns
The MD5 hex digest string from hashing the content of all the given files.
- mlops.hashing.hashing.get_hash_s3(files_to_hash: Collection) str
Returns the MD5 hex digest string from hashing the content of all the given files in S3. The files are sorted before hashing so that the process is reproducible.
- Parameters
files_to_hash – A collection of paths to files whose contents should be hashed.
- Returns
The MD5 hex digest string from hashing the content of all the given files.
Module contents
Contains hash modules.