sites.sdk.common package

Subpackages

Submodules

sites.sdk.common.authorization_builder module

class sites.sdk.common.authorization_builder.AuthorizationBuilder[source]

Defines the Interface to retrieve an authorization header

abstractmethod get_authorization_header() Dict[str, str][source]

Returns the authorization header in the format: ‘Authorization: Bearer eyJhbGciOiJIUz.eyJzdWIiOiIx.SflKxwRJc’

Returns:

str - the authorization header

sites.sdk.common.configuration module

class sites.sdk.common.configuration.Configuration[source]

Represents the package configurations

API_VERSION = '2'
LARGE_FILE_SIZE = 107374182
RETRIES = 5
SITES_URL = 'https://sites.ecmwf.int'
USER_AGENT_HEADER = {'User-Agent': 'SitesToolkit/20260402.1 (macOS-26.3.1-arm64-arm-64bit) Python/3.12.10'}
get_sites_openid_token_url()[source]

sites.sdk.common.serializable module

class sites.sdk.common.serializable.Serializable[source]

Extending this class will help serializing and deserializing objects, useful for pickling

static serializer(o: Any) Any[source]
to_dict() Dict[str, Any][source]

returns a dictionary with all the properties except private ones

to_str() str[source]

Returns the string representation of the model