conf_engine.options¶
Attributes¶
Classes¶
An object that represents a default that is not defined. Should not be |
|
CLass representing an option to be registered with the Configuration object. |
|
CLass representing an option to be registered with the Configuration object. |
|
CLass representing an option to be registered with the Configuration object. |
|
CLass representing an option to be registered with the Configuration object. |
Module Contents¶
- class conf_engine.options._UndefinedDefault¶
An object that represents a default that is not defined. Should not be used outside the Config Engine module itself.
- conf_engine.options.UNDEFINED¶
- class conf_engine.options.Option(name, option_type: conf_engine.core.types.Type = None, default: any = UNDEFINED)¶
CLass representing an option to be registered with the Configuration object. All Options have a subset of shared properties, name, default, type, etc. Inheriting classes may implement additional kwargs as appropriate to their type. When a default is set it will be validated using the option_type specified.
- name¶
- option_type¶
- default¶
- __str__()¶
- __call__(value)¶
- class conf_engine.options.StringOption(*args, option_type: conf_engine.core.types.String = None, ignore_case: bool = False, max_length: int = None, choices: Iterable = None, type_name: str = 'string type', **kwargs)¶
Bases:
OptionCLass representing an option to be registered with the Configuration object. All Options have a subset of shared properties, name, default, type, etc. Inheriting classes may implement additional kwargs as appropriate to their type. When a default is set it will be validated using the option_type specified.
- class conf_engine.options.NumberOption(*args, option_type: conf_engine.core.types.Number = None, minimum: int | float = None, maximum: int | float = None, choices: Iterable = None, type_name: str = 'number type', cast: Callable = int, **kwargs)¶
Bases:
OptionCLass representing an option to be registered with the Configuration object. All Options have a subset of shared properties, name, default, type, etc. Inheriting classes may implement additional kwargs as appropriate to their type. When a default is set it will be validated using the option_type specified.
- class conf_engine.options.BooleanOption(*args, option_type=t.Boolean(), flag: bool = False, **kwargs)¶
Bases:
OptionCLass representing an option to be registered with the Configuration object. All Options have a subset of shared properties, name, default, type, etc. Inheriting classes may implement additional kwargs as appropriate to their type. When a default is set it will be validated using the option_type specified.
- flag = False¶