API Reference
#
config_functionsClasses
Defines functions that goes into every config class |
#
print_utilsFunctions
Returns string for config’s cli-arguments with corresponding comments | |
Extracts comments for a config object and any config-class children objects |
#
anyfig_setupFunctions
Adds Anyfig functionality to the class and registers it to known config classes | |
Instantiates a config class object | |
Overwrites parameters with input flags | |
Parses command line input arguments. |
#
figutilsFunctions
Raises error if the input argument isn’t marked as “allowed” | |
Default attributes every config class instance will have | |
Returns the arguments and required arguments for a function/class | |
Returns the attribute names that can be be overwritten from command line input. | |
Returns the config object that is registered with anyfig | |
Returns True if the config class definition is registered with anyfig | |
Loads the config from file | |
Recursively calls the post_init method on a config and it’s attributes | |
Saves the config class name and definition | |
Registers the config with anyfig to be accessible anywhere | |
Serialize and saves the config. | |
Unregisteres config classes with anyfig |
#
fieldsFunctions
Returns an InputField | |
Returns a ConstantField | |
Returns an InterfaceField | |
Removes wrapping for InterfaceFields | |
Validates that fields has a value |
Classes
Used to define config-attribute that can’t be overriden | |
Used to define required config-attribute from command line input | |
Used to define allowed values for a config-attribute |