nabu.pipeline.config_validators module¶
- nabu.pipeline.config_validators.validator(func)[source]¶
Common decorator for all validator functions. It modifies the signature of the decorated functions !
- nabu.pipeline.config_validators.str2bool(val)[source]¶
This is an interface to convert_to_bool and it is meant to work as a class: in argparse interface the type argument can be set to float, int .. in general to a class. The argument value is then created, at parsing time, by typecasting the input string to the given class. A possibly occuring exception then trigger, in case, the display explanation provided by the argparse library. All what this methods does is simply trying to convert an argument into a bool, and return it, or generate an exception if there is a problem
- nabu.pipeline.config_validators.name_range_checker(name, valid_names, descr, replacements=None)[source]¶
- nabu.pipeline.config_validators.cor_options_validator(section, key, value)¶