AwsDownload

AwsDownload#

class eodag.plugins.download.aws.AwsDownload(provider, config)[source]#

Download on AWS using S3 protocol.

Parameters:
  • provider (str) – provider name

  • config (PluginConfig) –

    Download plugin configuration:

    • type (str) (mandatory): AwsDownload

    • s3_endpoint (str): s3 endpoint url

    • flatten_top_dirs (bool): if the directory structure should be flattened; default: True

    • ignore_assets (bool): ignore assets and download using downloadLink; default: False

    • ssl_verify (bool): if the ssl certificates should be verified in requests; default: True

    • bucket_path_level (int): at which level of the path part of the url the bucket can be found; If no bucket_path_level is given, the bucket is taken from the first element of the netloc part.

    • products (dict[str, dict[str, Any]): product type specific config; the keys are the product types, the values are dictionaries which can contain the keys:

      • default_bucket (str): bucket where the product type can be found

      • complementary_url_key (str): keys to add additional urls

      • build_safe (bool): if a SAFE (Standard Archive Format for Europe) product should be created; used for Sentinel products; default: False

      • fetch_metadata (dict[str, Any]): config for metadata to be fetched for the SAFE product

__init__(provider, config)[source]#
Parameters:

Methods

__init__(provider, config)

check_manifest_file_list(product_path)

Checks if products listed in manifest.safe exist

download(product[, auth, progress_callback, ...])

Download method for AWS S3 API.

download_all(products[, auth, ...])

download_all using parent (base plugin) method

finalize_s2_safe_product(product_path)

Add missing dirs to downloaded product

generate_record_hash(product)

Generate the record hash of the given product.

get_chunk_dest_path(product, chunk[, ...])

Get chunk SAFE destination path

get_product_bucket_name_and_prefix(product)

Extract bucket name and prefix from product URL

Attributes

plugins