pipetex.enums

Enums shared in the project belong in this file.

@author: Max Weise created: 25.07.2022

 1""" Enums shared in the project belong in this file.
 2
 3
 4@author: Max Weise
 5created: 25.07.2022
 6"""
 7
 8import enum
 9
10
11class SeverityLevels(enum.IntEnum):
12    """The levels of severity wich are used for exception handling.
13
14    Higher levels indicate a more serious error. If neede values which are not
15    a multiple of 10 can be inserted. However, the values must be integers.
16    """
17
18    LOW = 10
19    HIGH = 20
20    CRITICAL = 30
21
22
23class ConfigDictKeys(enum.Enum):
24    """This enum holds all allowed keys for the shared config dictionary.
25
26    General Rules:
27        Add keys as needed, but only if absolutely needed.
28        string values have to be snake_case
29    """
30
31    NEW_NAME = "new_name"
32    FILE_PREFIX = "file_prefix"
33    VERBOSE = "verbose"
34    QUIET = "quiet"
class SeverityLevels(enum.IntEnum):
12class SeverityLevels(enum.IntEnum):
13    """The levels of severity wich are used for exception handling.
14
15    Higher levels indicate a more serious error. If neede values which are not
16    a multiple of 10 can be inserted. However, the values must be integers.
17    """
18
19    LOW = 10
20    HIGH = 20
21    CRITICAL = 30

The levels of severity wich are used for exception handling.

Higher levels indicate a more serious error. If neede values which are not a multiple of 10 can be inserted. However, the values must be integers.

LOW = <SeverityLevels.LOW: 10>
HIGH = <SeverityLevels.HIGH: 20>
CRITICAL = <SeverityLevels.CRITICAL: 30>
Inherited Members
enum.Enum
name
value
builtins.int
conjugate
bit_length
bit_count
to_bytes
from_bytes
as_integer_ratio
real
imag
numerator
denominator
class ConfigDictKeys(enum.Enum):
24class ConfigDictKeys(enum.Enum):
25    """This enum holds all allowed keys for the shared config dictionary.
26
27    General Rules:
28        Add keys as needed, but only if absolutely needed.
29        string values have to be snake_case
30    """
31
32    NEW_NAME = "new_name"
33    FILE_PREFIX = "file_prefix"
34    VERBOSE = "verbose"
35    QUIET = "quiet"

This enum holds all allowed keys for the shared config dictionary.

General Rules

Add keys as needed, but only if absolutely needed. string values have to be snake_case

NEW_NAME = <ConfigDictKeys.NEW_NAME: 'new_name'>
FILE_PREFIX = <ConfigDictKeys.FILE_PREFIX: 'file_prefix'>
VERBOSE = <ConfigDictKeys.VERBOSE: 'verbose'>
QUIET = <ConfigDictKeys.QUIET: 'quiet'>
Inherited Members
enum.Enum
name
value