i6_core.tools.download
¶
- class i6_core.tools.download.DownloadJob(*args, **kwargs)¶
Download an arbitrary file with optional checksum verification
If a checksum is provided the url will not be hashed
- Parameters:
url (str) –
target_filename (str|None) – explicit output filename, if None tries to detect the filename from the url
checksum (str|None) – A sha256 checksum to verify the file
- classmethod hash(parsed_args)¶
- Parameters:
parsed_args (dict[str]) –
- Returns:
hash for job given the arguments
- Return type:
str
- run()¶
- tasks()¶
- Returns:
yields Task’s
- Return type:
list[sisyphus.task.Task]