AwsDownload#
- class eodag.plugins.download.aws.AwsDownload(provider, config)[source]#
Download on AWS using S3 protocol.
- Parameters:
provider (
str) – provider nameconfig (
PluginConfig) –Download plugin configuration:
type(str) (mandatory): AwsDownloads3_endpoint(str): s3 endpoint urlflatten_top_dirs(bool): if the directory structure should be flattened; default:Trueignore_assets(bool): ignore assets and download usingeodag:download_link; default:Falsessl_verify(bool): if the ssl certificates should be verified in requests; default:Truebucket_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]): collection specific config; the keys are the collections, the values are dictionaries which can contain the keys:default_bucket (
str): bucket where the collection can be foundcomplementary_url_key (
str): properties keys pointing to additional urls of content to downloadbuild_safe (
bool): if a SAFE (Standard Archive Format for Europe) product should be created; used for Sentinel products; default: Falsefetch_metadata (
dict[str, Any]): config for metadata to be fetched for the SAFE product
- __init__(provider, config)[source]#
- Parameters:
provider (
str)config (
PluginConfig)
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, ...])Base download_all 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
stream_download(product[, auth, byte_range, ...])Stream EO product data as a FastAPI-compatible StreamResponse, with support for partial downloads, asset filtering, and on-the-fly compression.
Attributes
plugins