Refs #256 - Implement class-based formats

This allows to extend Tablib with new formats far more easily.
This commit is contained in:
Claude Paroz
2019-10-05 15:03:49 +02:00
parent d21bd10908
commit f1046cd13e
19 changed files with 1005 additions and 941 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ All we have to do is add them to a :class:`Databook` object... ::
... and export to Excel just like :class:`Datasets <Dataset>`. ::
with open('students.xls', 'wb') as f:
f.write(book.xls)
f.write(book.export('xls'))
The resulting ``students.xls`` file will contain a separate spreadsheet for each :class:`Dataset` object in the :class:`Databook`.