asset

This module is responsible for assets

class mosaic_orchestrator.asset.Asset(module: str, *paths: List[str])[source]

This class represents one asset and handel the hash calculation

task_hash()[source]

Calculate the hash for the asset, is used to evaluate the cache state

mosaic_orchestrator.asset.md5_file(filename: Union[str, Path]) str[source]

returns md5 hash of given file

mosaic_orchestrator.asset.md5_path(path: Union[str, Path]) str[source]

returns md5 hash of given path

mosaic_orchestrator.asset.md5_update_from_dir(directory: Union[str, Path], current_hash: HASH) HASH[source]

returns md5 hash of given directory

mosaic_orchestrator.asset.md5_update_from_file(filename: Union[str, Path], current_hash: HASH) HASH[source]

returns updated md5 hash of given file