Streaming responses
Can we use tablib to stream responses, eg have dataset.csv return a generator?
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:
- Add the function
export_stream_setto the possible ones - Update
export_setto use theexport_stream_setand 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