Skip to content

CSV Writer

This variable writes to a CSV file.

The CSV files must have headers for each column, since these are used to reference the value.

When setting the value of the variable there must be one value per specified header.

Format

Value is the path, relative to requests/, of an file ending with .csv.

Arguments

  • headers List[str] - comma seperated list of headers to be used in destination file
  • overwrite bool (optional) - if destination file exists and should be overwritten (default: False)

Example

And value for variable "AtomicCsvWriter.output" is "output.csv | headers='foo,bar'"
...
And value for variable "AtomicCsvWriter.output" is "{{ foo_value }}, {{ bar_value }}"

atomiccsvwriter__base_type__

def atomiccsvwriter__base_type__(value: str) -> str

[view_source]

Validate values that AtomicCsvWriter can be initialized with.

atomiccsvwriter_message_handler

def atomiccsvwriter_message_handler(environment: Environment, msg: Message,
                                    **_kwargs: Any) -> None

[view_source]

Receive messages containing CSV data. Write the data to a CSV file.