Enums
sereto.enums
¶
Environment
¶
Bases: str
, Enum
Enum representing the environment of a Target.
Source code in sereto/enums.py
10 11 12 13 14 15 16 |
|
FileFormat
¶
Bases: str
, Enum
Enum representing the file format.
Source code in sereto/enums.py
19 20 21 22 23 |
|
OutputFormat
¶
Bases: str
, Enum
Enum representing the output format.
Source code in sereto/enums.py
26 27 28 29 30 |
|
Risk
¶
Bases: str
, Enum
Enum representing the risk level of a finding.
Source code in sereto/enums.py
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 59 60 61 62 63 64 65 66 67 |
|
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
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|