Skip to content

Config

Module for handling configuration file.

Condigurations are loaded from a JSON file and can be accessed as attributes of the Config class.

Example
config = Config("path/to/config.json")
config.some_attribute

Config

The configuration class that handles configuration files.

__getattr__(_)

Get the value of an attribute.

Returns:

Type Description

None if the attribute is not found.

__init__(filename)

Initialize the Config class by loading configurations from a given file.

Parameters:

Name Type Description Default
filename str

The name of the configuration file.

required