ConfigWrapper

class app.util.config.wrapper.ConfigWrapper[source]

Bases: Generic

Inheritance diagram of ConfigWrapper

Inheritance Diagram for ConfigWrapper

Methods

__init__(config_class, argparser_class)

initialize()

load(config)

open(path)

reset()

Attributes

args

__init__(config_class, argparser_class)[source]
Parameters:
  • config_class (type[C])

  • argparser_class (type[A])

property args: Namespace[source]
initialize()[source]
Return type:

TypeVar(C, bound= ConfigBase)

load(config)[source]
Return type:

TypeVar(C, bound= ConfigBase)

Parameters:

config (str | dict[str, Any] | C)

open(path)[source]
Return type:

TypeVar(C, bound= ConfigBase)

Parameters:

path (ConfigFilePath | str)

reset()[source]
Return type:

None