rex.utilities.toml_parser.TOMLParser

class TOMLParser(toml_file)[source]

Bases: object

Class object to parse in configuration parameters from .toml files

Parse .toml into a dictionary and flatten it

Parameters:

toml_file (‘str’) – Path to config .toml file

Methods

get_value(*keys)

Decode config entry converting missing or 'None' entires to None

get_value(*keys)[source]

Decode config entry converting missing or ‘None’ entires to None

Parameters:

keys (‘string’) – keys for config entry to be read

Returns:

‘object’ – decoded config entry using eval