Skip to content

First class support for streaming downloads in EODAG #2013

@pdavid-cssopra

Description

@pdavid-cssopra

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

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions