Open aidanlister opened 8 years ago
This is not currently planned.
Sorry to rehash, but would you accept a patch that implemented this support?
I'm +1 for it, but it needs some design decisions. Which operations we'll be able to support for streaming imports and exports?
I know openpyxl has optimized reader/writer (http://openpyxl.readthedocs.io/en/default/optimized.html) and it is really useful.
Reopening the issue for discussion. I think it is possible to make it in tablib.
Hello @iurisilvio @jarshwah @kennethreitz
A lot of formats use file-like object but export_set
returns stream.getvalue()
to get a string.
So my proposition is the following:
export_stream_set
to the possible onesexport_set
to use the export_stream_set
and launch .getvalue()
to get a string.I think we could gain in features just by split code in several functions. And I really need to be able to work with streams :D
What do you think about ?
POC here: #337
Can we use tablib to stream responses, eg have dataset.csv return a generator?