diff options
Diffstat (limited to 'tablib/core.py')
| -rw-r--r-- | tablib/core.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tablib/core.py b/tablib/core.py index 4cef83c..6ab0fc5 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -388,6 +388,19 @@ class Dataset(object): """ pass + @property + def xlsx(): + """An Excel Spreadsheet representation of the :class:`Dataset` object, with :ref:`separators`. Cannot be set. + + .. admonition:: Binary Warning + + :class:`Dataset.xlsx` contains binary data, so make sure to write in binary mode:: + + with open('output.xlsx', 'wb') as f: + f.write(data.xlsx)' + """ + pass + @property def csv(): |
