eodag.plugins.download.s3rest.S3RestDownload
eodag.plugins.download.s3rest.S3RestDownload#
- class eodag.plugins.download.s3rest.S3RestDownload(provider, config)[source]#
Http download on S3-like object storage location for example using Mundi REST API (free account) https://mundiwebservices.com/keystoneapi/uploads/documents/CWS-DATA-MUT-087-EN-Mundi_Download_v1.1.pdf#page=13
Re-use AwsDownload bucket some handling methods
- Parameters
provider (str) – provider name
config (
PluginConfig
) –Download plugin configuration:
config.base_uri
(str) - default endpoint urlconfig.extract
(bool) - (optional) extract downloaded archive or notconfig.auth_error_code
(int) - (optional) authentication error codeconfig.bucket_path_level
(int) - (optional) bucket location index in path.split(‘/’)config.order_enabled
(bool) - (optional) wether order is enabled or not if product is OFFLINEconfig.order_method
(str) - (optional) HTTP request method, GET (default) or POSTconfig.order_headers
(dict) - (optional) order request headersconfig.order_on_response
(dict) - (optional) edit or add new product propertiesconfig.order_status_method
(str) - (optional) status HTTP request method, GET (default) or POSTconfig.order_status_percent
(str) - (optional) progress percentage key in obtained status responseconfig.order_status_success
(dict) - (optional) key/value identifying an error successconfig.order_status_on_success
(dict) - (optional) edit or add new product properties
Methods
__init__
(provider, config)download
(product[, auth, progress_callback, ...])Download method for S3 REST API.
download_all
(products[, auth, ...])Base download_all method.
Attributes
plugins