Outputs

File Output

The base class for file output modules

class modules.outputs.file_output.FileOutput(module, env, named_modules)

A file output module has a source and a path to a file.

add_to_graph(graph)

A method for adding the module to a graphviz graph instance.

Parameters:graph (graphviz.dot.Digraph) – A graphviz Digraph object
rendered_result()

Returns a pair of strings containing the rendered lines of codes and external classes or objects definitions.

Return type:Tuple[str, str]

CSV Output

The CSV output operation module

class modules.outputs.csv_output.CsvOutput(module, env, named_modules)

Bases: modules.outputs.file_output.FileOutput

A module that writes a dataflow to a CSV flink sink (a csv file)

check_integrity()

Performs some check on the upstream modules and types when necessary to ensure the integrity of the DAG.

get_out_type()

Returns the output type of the module as a list of strings.

rendered_result()

Returns a pair of strings containing the rendered lines of codes and external classes or objects definitions.

Return type:Tuple[str, str]