Python: add support for exporting document into CSV files.
Let's add a Python API for exporting document into one or more CSV files - one per sheet.
Current API idea:
import csv
doc = ... # document object
with open("path/to/export.csv", "wb") as f:
csv.write(f, doc.sheets[0])
Since the csv format doens't have a concept of multiple sheets, this csv.write
function will only take a sheet object as its content source.
Alternative idea is:
doc = ... # document object
with open("path/to/export.csv", "wb") as f:
doc.sheets[0].write(f, format=orcus.FormatType.CSV)
Edited by username-removed-109426