Functions¶
Common functions
- iceprod.core.functions.compress(infile, compression='lzma')[source]¶
Compress a file or directory. The compression argument is used as the new file extension
- iceprod.core.functions.iscompressed(infile)[source]¶
Check if a file is a compressed file, based on file name
- iceprod.core.functions.istarred(infile)[source]¶
Check if a file is a tarred file, based on file name
- iceprod.core.functions.cksm(filename, type, buffersize=16384, file=True)[source]¶
Return checksum of file using algorithm specified
- iceprod.core.functions.getInterfaces()[source]¶
Get a list of available interfaces.
Requires psutil.
- Returns:
{type: address}}
- Return type:
dict of {nic_name
- async iceprod.core.functions.download(url, local, options={})[source]¶
Download a file, checksumming if possible