Enums
sereto.enums
¶
Environment
¶
Bases: str
, Enum
Enum representing the environment of a Target.
Source code in sereto/enums.py
6 7 8 9 10 11 12 |
|
FileFormat
¶
Bases: str
, Enum
Enum representing the file format.
Source code in sereto/enums.py
15 16 17 18 19 |
|
OutputFormat
¶
Bases: str
, Enum
Enum representing the output format.
Source code in sereto/enums.py
22 23 24 25 26 |
|
Risk
¶
Bases: str
, Enum
Enum representing the risk level of a finding.
Source code in sereto/enums.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
to_int()
¶
Convert risks to a number.
Usefull for comparison - e.g. max(risks, key=lambda r: r.to_int())
Source code in sereto/enums.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|