vimsheet.io.csv_adapter

CSV / TSV import and export adapter.

class vimsheet.io.csv_adapter.CSVAdapter[source]

Bases: FormatAdapter

Read and write CSV (or TSV) files.

supported_extensions: list[str] = ['.csv', '.tsv', '.txt']
read(path, delimiter=',', encoding='utf-8', **opts)[source]

Parse path as CSV and return a Workbook with one sheet.

Parameters:
Return type:

Workbook

write(workbook, path, delimiter=',', encoding='utf-8', **opts)[source]

Write the active sheet to path as CSV.

Parameters:
Return type:

None