diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-05-12 17:40:17 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-05-12 17:40:17 -0400 |
| commit | 322283b8f968c036321ae2bf90a334f808f7cf3f (patch) | |
| tree | a86068f9090a4a3ebab697291e71a4b11c364267 /tablib/core.py | |
| parent | 396872990377251966ad733924aa0fbfe177d058 (diff) | |
| parent | 5350355fbe0aefe053d40fda03c0688a7b7eae3d (diff) | |
| download | tablib-322283b8f968c036321ae2bf90a334f808f7cf3f.tar.gz | |
Merge pull request #9 from f4nt/tablib
---
I thought I was going to wait til later to do this, but once I got started I couldnt stop myself I guess. I believe this fixes the row limit issues that I mentioned earlier by adding XLSX support. Ive tested it up to 75k rows. Believe the tests and setup.py should be squared away properly as well. Im a bit concerned about the pane freezing stuff, as thats completely undocumented in openpyxl. Truth be told, I barely even know what that functionality does. I hate spreadsheets :)
Anyways, let me know if you want any changes or anything made. Dont have to worry about hurting my feelings or anything!
Conflicts:
tablib/core25.py
test_tablib.py
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(): |
