Module implementing download client that is adjusted to download from AWS

class*, redownload=False, raise_download_errors=True, config=None)[source]


An AWS download client class

  • redownload (bool) – If True the data will always be downloaded again. By default this is set to False and the data that has already been downloaded and saved to an expected location will be read from the location instead of being downloaded again.
  • raise_download_errors (bool) – If True any error in download process will be raised as DownloadFailedException. If False failed downloads will only raise warnings.
  • config (SHConfig) – An instance of configuration class
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
Return type:bool