eodag.plugins.download.s3rest.S3RestDownload#

class eodag.plugins.download.s3rest.S3RestDownload(provider: str, config: PluginConfig)[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 url

    • config.extract (bool) - (optional) extract downloaded archive or not

    • config.auth_error_code (int) - (optional) authentication error code

    • config.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 OFFLINE

    • config.order_method (str) - (optional) HTTP request method, GET (default) or POST

    • config.order_headers (dict) - (optional) order request headers

    • config.order_on_response (dict) - (optional) edit or add new product properties

    • config.order_status_method (str) - (optional) status HTTP request method, GET (default) or POST

    • config.order_status_percent (str) - (optional) progress percentage key in obtained status response

    • config.order_status_success (dict) - (optional) key/value identifying an error success

    • config.order_status_on_success (dict) - (optional) edit or add new product properties

__init__(provider: str, config: PluginConfig) None[source]#

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