assemblerflow.generator.process_details module

assemblerflow.generator.process_details.colored_print(msg, color_label='white_bold')[source]
This function enables users to add a color to the print. It also enables to pass end_char to print allowing to print several strings in the same line in different prints.
Parameters:
color_string: str

The color code to pass to the function, which enables color change as well as background color change.

msg: str

The actual text to be printed

end_char: str

The character in which each print should finish. By default it will be “

“.
assemblerflow.generator.process_details.procs_dict_parser(procs_dict)[source]

This function handles the dictionary of attributes of each Process class to print to stdout.

Parameters:
procs_dict: dict

A dictionary with the class attributes used by the argument that prints the lists of processes, both for short_list and for detailed_list.

assemblerflow.generator.process_details.proc_collector(process_map, args, processes_list=None)[source]

Function that collects all processes available and stores a dictionary of the required arguments of each process class to be passed to procs_dict_parser

Parameters:
process_map: dict

The dictionary with the Processes currently available in assemblerflow and their corresponding classes as values

args: argparse.Namespace

The arguments passed through argparser that will be access to check the type of list to be printed

processes_list: list

List with all the available processes of a recipe. In case no recipe is passed, the list should come empty.