HTTPDownload#
- class eodag.plugins.download.http.HTTPDownload(provider, config)[source]#
HTTPDownload plugin. Handles product download over HTTP protocol
- Parameters:
provider (
str) – provider nameconfig (
PluginConfig) –Download plugin configuration:
type(str) (mandatory):HTTPDownloadbase_uri(str): default endpoint urlmethod(str): HTTP request method for the download request (GETorPOST); default:GETextract(bool): if the content of the downloaded file should be extracted; default:Trueauth_error_code(int): which error code is returned in case of an authentication errordl_url_params(dict[str, Any]): parameters to be added to the query params of the requestarchive_depth(int): level in extracted path tree where to find data; default:1flatten_top_dirs(bool): if the directory structure should be flattened; default:Trueignore_assets(bool): ignore assets and download using downloadLink; default:Falsetimeout(int): time to wait until request timeout in seconds; default:5ssl_verify(bool): if the ssl certificates should be verified in requests; default:Trueno_auth_download(bool): if the download should be done without authentication; default:Trueorder_enabled(bool): if the product has to be ordered to download it; if this parameter is set to true, a mapping for the orderLink has to be added to the metadata mapping of the search plugin used for the provider; default:Falseorder_method(str): HTTP request method for the order request (GETorPOST); default:GETorder_headers([dict[str, str]]): headers to be added to the order requestorder_on_response(OrderOnResponse): a typed dictionary containing the keymetadata_mappingwhich can be used to add new product properties based on the data in response to the order requestorder_status(OrderStatus): configuration to handle the order status; contains information which method to use, how the response data is interpreted, which status corresponds to success, ordered and error and what should be done on success.products(dict[str, dict[str, Any]): product type specific config; the keys are the product types, the values are dictionaries which can contain the keyextractto overwrite the provider config for a specific product type
- __init__(provider, config)[source]#
- Parameters:
provider (
str)config (
PluginConfig)
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.
order(product[, auth, wait, timeout])Order product and poll to check its status
order_response_process(response, product)Process order response
Attributes
plugins