ExportDataCsvKwargs
Hierarchy
- ExportDataCsvKwargs
Index
Properties
keyword-onlyoptionaldelimiter
A one-character string used to separate fields. Defaults to ','.
keyword-onlyoptionaldialect
Specifies a dialect to be used in CSV parsing and writing.
keyword-onlyoptionaldoublequote
Controls how instances of quotechar inside a field should be quoted. When True, the character is doubled;
when False, the escapechar is used as a prefix. Defaults to True.
keyword-onlyoptionalescapechar
A one-character string used to escape the delimiter if quoting is set to QUOTE_NONE and the quotechar
if doublequote is False. Defaults to None, disabling escaping.
keyword-onlyoptionallineterminator
The string used to terminate lines produced by the writer. Defaults to '\r\n'.
keyword-onlyoptionalquotechar
A one-character string used to quote fields containing special characters, like the delimiter or quotechar, or fields containing new-line characters. Defaults to '"'.
keyword-onlyoptionalquoting
Controls when quotes should be generated by the writer and recognized by the reader. Can take any of
the QUOTE_* constants, with a default of QUOTE_MINIMAL.
keyword-onlyoptionalrestval
The value written for columns an item does not contain. Defaults to an empty string.
keyword-onlyoptionalskipinitialspace
When True, spaces immediately following the delimiter are ignored. Defaults to False.
keyword-onlyoptionalstrict
When True, raises an exception on bad CSV input. Defaults to False.
Keyword arguments forwarded to
csv.DictWriterby the CSV export.Mirrors the keyword arguments of
csv.DictWriter, so consult its documentation for their exact meaning. Thefieldnamesandextrasactionarguments are omitted, because the export derives the columns from the exported items and manages how keys outside them are handled.