here.platform.config.platform_config module#
This module provides a PlatformConfig class to be used for platform configuration management.
A config object can be created from a platform_config.conf file in the package.
- class here.platform.config.platform_config.PlatformConfig(api: str, portal_url: str | None = None, status_url: str | None = None, platform_status_url: str | None = None, account_url: str | None = None, lookup_api_prefix: str | None = None)[source]#
Bases:
objectPlatformConfig provides functions for dealing with the HERE platform Config.
Config can be read from the packaged platform_config.conf file based on platform environment
- classmethod from_environment(environment: Environment) PlatformConfig[source]#
Return the config object from a specified config file path.
- Parameters:
environment – an instance of Environment enum.
- Returns:
config