eodag.plugins.download.http.HTTPDownload#
- class eodag.plugins.download.http.HTTPDownload(provider: str, config: PluginConfig)[source]#
HTTPDownload plugin. Handles product download over HTTP protocol
- 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.dl_url_params
(dict) - (optional) attitional parameters to send in the requestconfig.archive_depth
(int) - (optional) level in extracted path tree where to find dataconfig.flatten_top_dirs
(bool) - (optional) flatten directory structureconfig.ignore_assets
(bool) - (optional) ignore assets and download using downloadLinkconfig.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_error
(dict) - (optional) key/value identifying an error status
Methods
__init__
(provider, config)download
(product[, auth, progress_callback, ...])Download a product using HTTP protocol.
download_all
(products[, auth, ...])Download all using parent (base plugin) method
generate_record_hash
(product)Generate the record hash of the given product.
orderDownload
(product[, auth])Send product order request.
orderDownloadStatus
(product[, auth])Send product order status request.
order_response_process
(response, product)Process order response
Attributes
plugins