Bases: fireworks.core.firework.FireTaskBase
Wrapper around shutil.make_archive to make tar archives.
base_name (str): Name of the file to create, including the path, minus any
format-specific extension.
Bases: fireworks.core.firework.FireTaskBase
Compress all files in a directory.
dest (str): Optional. Path to compress. compression (str): Optional. Can only be gz or bz2. Defaults to gz. ignore_errors (bool): Optional. Whether to ignore errors. Defaults to
False.
Bases: fireworks.core.firework.FireTaskBase
Decompress all files in a directory. Autodetects gz, bz2 and z file extensions.
dest (str): Optional. Path to decompress. ignore_errors (bool): Optional. Whether to ignore errors. Defaults to
False.
Bases: fireworks.core.firework.FireTaskBase
A FireTask to delete files: Required params:
- files_to_delete: ([str]) Filenames to delete
Bases: fireworks.core.firework.FireTaskBase
A FireTask to Transfer files. Note that Required params:
- mode: (str) - move, mv, copy, cp, copy2, copytree, copyfile, rtransfer
- files: ([str]) or ([(str, str)]) - list of source files, or dictionary containing ‘src’ and ‘dest’ keys
- dest: (str) destination directory, if not specified within files parameter
Bases: fireworks.core.firework.FireTaskBase
A FireTask to write files: Required params:
- files_to_write: ([{filename:(str), contents:(str)}]) List of dicts with filenames and contents
Bases: fireworks.core.firework.FireTaskBase
Runs any python function! Extremely powerful, which allows you to essentially run any accessible method on the system.
args (list): List of args. Default is empty. kwargs (dict): Dictionary of keyword args. Default is empty. auto_kwargs (bool): If True, all other params not starting with “_” are supplied as keyword args stored_data_varname (str): Whether to store the output in
FWAction. If this is a string that does not evaluate to False, the output of the function will be stored as FWAction(stored_data={stored_data_varname: output}). The name is deliberately long to avoid potential name conflicts.
Bases: fireworks.core.firework.FireTaskBase
Bases: fireworks.core.firework.FireTaskBase
Task to write templated files via Jinja2 library Required parameters:
- template_file: (str) - path to template file
- context: (dict) - variable replacements for the template file
- output_file: (str) - output file
Bases: fireworks.utilities.fw_serializers.FWSerializable
Bases: fireworks.utilities.fw_serializers.FWSerializable