sentinelhub.api.utils

Module implementing some common utility functions

sentinelhub.api.utils.enum_config(enum_class)[source]

Given an Enum class it provide an object for serialization/deserialization

Parameters

enum_class (Type[Enum]) –

Return type

Dict[str, dict]

sentinelhub.api.utils.remove_undefined(payload)[source]

Takes a dictionary and removes keys without value

Parameters

payload (dict) –

Return type

dict