augur.types moduleο
- class augur.types.ArgparseEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Enum
Intended to be used as a parent class for any enum representation of string values to be used with argparse options.
Can be replaced by
enum.StrEnum
once Augurβs minimum supported Python version is 3.11.- classmethod argtype(input_string)ο
Intended to be used as the argument type converter for argparse options that use the enum values as inputs.
Raises a custom argparse.ArgumentTypeError so that the error message can include a helpful list of the all valid enum values.
- class augur.types.DataErrorMethod(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
ArgparseEnum
Enum representation of string values that represent how a data error should be handled.
- ERROR_ALL = 'error_all'ο
- ERROR_FIRST = 'error_first'ο
- SILENT = 'silent'ο
- WARN = 'warn'ο
- class augur.types.EmptyOutputReportingMethod(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
ArgparseEnum
Enum representation of string values that represent how empty outputs should be reported.
- ERROR = 'error'ο
- SILENT = 'silent'ο
- WARN = 'warn'ο
- class augur.types.ValidationMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
ArgparseEnum
Enum representation of string values that represent how validation should be handled.
- ERROR = 'error'ο
- SKIP = 'skip'ο
- WARN = 'warn'ο