csvwriter | PyF, flow-based python programming csvwriter


package name: pyf.components.consumers.csvwriter

“csvwriter” plugin

class pyf.components.consumers.csvwriter.CSVWriter(config_node, component_id)
Configuration available :
  • advanced(label: Advanced): Compound key (each sub key is an individual tag)
    • separate_process(label: Separate Process): boolean
  • name(label: Name): Simple key/value (text-based)

    unique name

  • encoding(label: Encoding): Simple key/value (text-based) (default: “UTF-8”)

  • splitkey(label: Split Attribute (optionnal)): Simple key/value (text-based)

    Attribute with which to split files

  • target_filename(label: Target filename): Simple key/value (text-based) (default: “filename.csv”)

  • delimiter(label: Delimiter): Simple key/value (text-based) (default: ”;”)

  • write_header_line(label: Write header line): Boolean Key (‘on’, ‘true’ and ‘yes’, case insensitive are True) (default: “True”)

  • columns(label: Columns): Key with repeated column content
    Key contains repeated items “column”:
    • column(label: Column): Compound key (“title” key is the text content of the node)
      • title(label: Title): input

        Column title in header

      • attribute(label: Attribute): input

        Source object attribute

      • renderer(label: Renderer): input

        Renderer eval (optionnal)