Download and process satellite imagery in Python using Sentinel Hub services.
max_retries
parameter to SHConfig
class. It controls how many times the client will attempt to re-download before raising OutOfRequestsException
. It is set to None
by default, in which case it never stops trying. Contributed by @Regan-Koopmans.This update ensures that session-sharing works as intended.
Changelog:
SentinelHubDownloadClient
class now has a default_retry_time
parameter, which allows control over the waiting time when a request gets a 429 TOO_MANY_REQUESTS response without a specific retry time in the headers. The default value for this behavior has been changed from 0s to 30s to avoid edge-cases where SH services were bombarded with requests.dataclasses_json 0.6.2
that broke BYOC functionalitiesChangelog:
SHConfig
now correctly initializes a default profile in the file even if the first initialization call is done with a custom profile.SHConfig
adjusted to work with the environmental variable SH_PROFILE
sentinelhub.config --show
works with the environmental variable SH_PROFILE
Changelog:
QUALITY_FLAGS
band to S3_OLCI
Changelog:
sh_auth_base_url
has been replaced with sh_token_url
to allow authentication on endpoints with suffixes other than oauth/token
. For the new parameter the address must be provided in full, e.g. https://services.sentinel-hub.com/oauth/token
instead of https://services.sentinel-hub.com
.The change only affects users who manually adjusted this field.DataCollection
was switched from enum.Enum
to aenum.Enum
, but we expect no behavioral changes.This release focuses mostly on the changes regarding the Sentinel Hub configuration file (SHConfig
) moving into the direction of a more common config usage:
~/.config/sentinelhub/config.toml
on Linux/MacOS and C:/Users/<USERNAME>/.config/sentinelhub/config.toml
on Windows, which means that the configs are now separated from the repo location
sentinelhub-py
is installed now use the configuration from the same sourceSH_PROFILE
that dictates which profile should be used when not explicitly provided.SH_CLIENT_ID
and SH_CLIENT_SECRET
for setting the SentinelHub credentials.explicit parameters > environment > configuration file > defaults
.For more information about the configuration updates, check the Configuration section in the readthedocs.
Other changes in this release include:
pyproject.toml
based install, enabling a lighter package with fewer install filesChangelog: