-
Notifications
You must be signed in to change notification settings - Fork 52
Description
What would you like to be added ?
The support for streaming downloads that is already available for use in server mode should also be available for users in the eodag library.
Why is this needed ?
Streaming downloads would allow users to send the data they retrieved from EODAG to another tool of their choice without having to store on their filesystem first. This feature would enable more powerful and performant data processing pipelines using the EODAG library.
How should it be implemented ?
Currently there is a method _stream_download_dict that is implemented in the download plugins. This method should be used in a public method EODataAccessGateway.stream_download(product) similar to EODataAccessGateway.download(product).
Technical note
Add StreamResponse.from_file methode: emulte stream from a file
Warning: core.stream_download return not a real byte stream, but a equivalent of file generator, it's sync, cannot be parallelized. Enhance StreamResponse behaviour