anyfig_setup

overwrite#

anyfig.anyfig_setup.overwrite(main_config_obj, args)[source]

Overwrites parameters with input flags

Parameters
  • main_config_obj (ConfigClass) – config instance

  • args (dict) – arguments used to overwrite

Returns

ConfigClass – config instance

create_config#

anyfig.anyfig_setup.create_config(config_str)[source]

Instantiates a config class object

parse_cli_args#

anyfig.anyfig_setup.parse_cli_args(raw_args=None)[source]

Parses command line input arguments. If raw_args is None, sys.argv is parsed

config_class#

anyfig.anyfig_setup.config_class(cls=None, *, target=None)[source]

Adds Anyfig functionality to the class and registers it to known config classes

init_config#

anyfig.anyfig_setup.init_config(default_config, cli_args=None)[source]