sentinelhub.aws.client

Module implementing a download client that is adjusted to download from AWS

class sentinelhub.aws.client.AwsDownloadClient(*args, boto_params=None, **kwargs)[source]

Bases: DownloadClient

An AWS download client class

Parameters:
  • args – Positional arguments propagated to DownloadClient class.

  • boto_params – A dictionary of extra parameters that will be propagated to botocore.client.S3.get_object method. E.g. {“RequestPayer”: “requester”}.

  • kwargs – Keyword arguments propagated to DownloadClient class.

GLOBAL_S3_CLIENTS: Dict[str, Any] = {}
classmethod get_s3_client(config)[source]

Provides a s3 client object

Parameters:

config (SHConfig) –

Return type:

Any

static is_s3_request(request)[source]

Checks if data has to be downloaded from AWS s3 bucket

Returns:

True if url describes location at AWS s3 bucket and False otherwise

Parameters:

request (DownloadRequest) –

Return type:

bool