config_functions

MasterConfig#

class anyfig.config_functions.MasterConfig[source]

Bases: abc.ABC

Defines functions that goes into every config class

allowed_cli_args()[source]

Returns the attribute names that can be be overwritten from command line input

build(external_args=None)[source]

Instantiates target object connected to config class

frozen(freeze=True)[source]

Freeze/unfreeze the config. Frozen configs are unmutable

Parameters

freeze (bool, optional) โ€“ Freeze config. Defaults to True.

Returns

ConfigClass โ€“ Config instance

get_parameters(copy=True)[source]

Returns the config attributes. Doesnโ€™t include Anyfig built-ins

post_init()[source]

A function that is called after overwriting from command line input

pretty()[source]

Pretty string representation of the config