here.platform.environment module#

Environment module

This module defines the different platform environments supported. Users can select the platform environment using enum, or by setting environment variable.

class here.platform.environment.Environment(value)[source]#

Bases: Enum

Environment enum defines the different platform environment supported. Environment: Default, Local.

Private environments are provided for eu-west-1 and us-west-2 AWS regions. These may be used when available, such as through VPC peering or Aether firewall rules, for less expensive data transfer compared to the public endpoints which will be routed as public Internet traffic. Note that only catalogs hosted in the same region will be accessible.

DEFAULT = 1#
LOCAL = 4#
PRIVATE_EU_WEST_1 = 5#
PRIVATE_US_WEST_2 = 6#
classmethod from_default() Environment[source]#

Return the Environment from default.

If environmental variable is set, this value will override the default value.

Returns:

environment

classmethod from_env_variable() Environment[source]#

Return the Environment from environment variable.

Expected variable name: HERE_ENVIRONMENT. :return: environment :raises ConfigException: Missing environmental variable