Write Data

pipeline:
  input:
    reader:
      type: list
      list: 'customer_data'
  output:
    writer:
      type: csv
      filename: customer_file.csv

This pipeline reads from a list called customer_data and writes the data to a CSV file called customer_file.csv.

Another example is writing to a file using the JSON type:

pipeline:
  input:
    reader:
      type: list
      list: 'product_data'
  output:
    writer:
      type: json
      filename: product_file.json

This pipeline reads from a list called product_data and writes the data to a JSON file called product_file.json.