Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use optimized writer for writing out xlsx so as to support large files #11

Closed
chfw opened this issue Aug 25, 2016 · 4 comments
Closed

Comments

@chfw
Copy link
Member

chfw commented Aug 25, 2016

optimized writer is a better fit for pyexcel-xlsx.

trigger: pyexcel-webwares/Flask-Excel#16
hint: http://stackoverflow.com/questions/21328884/openpyxl-writing-large-excel-files-with-python
doc: http://openpyxl.readthedocs.io/en/2.3.3/optimized.html

@chfw
Copy link
Member Author

chfw commented Aug 25, 2016

@rotten, to evaluate before its release:

pip install https://github.com/pyexcel/pyexcel-io/archive/master.zip
pip install https://github.com/pyexcel/pyexcel-xlsx/archive/master.zip

@rotten
Copy link

rotten commented Aug 26, 2016

Thanks, I'll give it a try tomorrow.

@rotten
Copy link

rotten commented Aug 26, 2016

It seems to work. I'm not sure it is faster than the xlsxw solution, but it seems to be fairly stable and so far I haven't been able to crash it with large data sets. :-) Thanks.

@chfw
Copy link
Member Author

chfw commented Aug 26, 2016

So it seems the following promise of "write-only" from openpyxl is valid.

It is able to export unlimited amount of data (even more than Excel can handle actually), while keeping memory usage under 10Mb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants