Enums
sereto.enums
¶
Environment
¶
Bases: StrEnum
Enum representing the environment of a Target.
Source code in sereto/enums.py
6 7 8 9 10 11 12 | |
FileFormat
¶
Bases: StrEnum
Enum representing the file format.
Attributes:
| Name | Type | Description |
|---|---|---|
md |
Markdown file format ('.md') |
|
tex |
TeX file format ('.tex') |
|
typ |
Typst file format ('.typ') |
Source code in sereto/enums.py
23 24 25 26 27 28 29 30 31 32 33 34 | |
OutputFormat
¶
Bases: StrEnum
Enum representing the output format.
Source code in sereto/enums.py
37 38 39 40 41 | |
Risk
¶
Bases: StrEnum
Enum representing the risk level of a finding.
Source code in sereto/enums.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
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
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |