here.platform.config.application_config module#
This module provides a ApplicationConfig class to be used for configuration management.
A config object can be created from a application_config.conf file in the package, or from a
custom config file path provided.
- class here.platform.config.application_config.ApplicationConfig(retry_max_time: float, read_timeout: float, connect_retry_max_time: float, connect_timeout: float, polling_wait: float, max_object_store_upload_part_size: int)[source]#
Bases:
objectApplicationConfig provides functions for dealing with the pysdk application Config.
Config can be read from the following locations:
The default packaged file: application_config.conf
The default location: “~/.here/application_config.conf”
A custom path to a config file
- classmethod from_config_file(path: str) ApplicationConfig[source]#
Return the config object from a specified config file path.
- Parameters:
path – path to a PySDK application_config.conf file.
- Returns:
config
- Raises:
ConfigException – Erroneous application_config.conf file in path
- classmethod from_default() ApplicationConfig[source]#
Return the config read from the default config file path at ‘~/.here/application_config.conf’.
If no default file is found, this method will try to read the config from the package application_config.conf file.
- Returns:
config