here.platform.utils.properties_helper module#

This module provides a PropertiesDict class to be used for handling Java properties files which converts number values to int or float.

class here.platform.utils.properties_helper.PropertiesDict(props: Dict[str, Any])[source]#

Bases: object

This class wraps the reading of Java properties files.

classmethod parse(path) Dict[str, Any][source]#

Parses a Java properties file and returns it as a python dictionary.

Parameters:

path – path to a Java properties file.

Returns:

dictionary of key-value-pairs where the keys are strings and the values could be anything (mostly strings but also converted numbers (int, float)

property properties: Dict[str, Any]#

The Java properties representation of the document in a python dictionary