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
15 16 17 18 19 20 21 22 23 24 25 26 | |
OutputFormat
¶
Bases: StrEnum
Enum representing the output format.
Source code in sereto/enums.py
29 30 31 32 33 | |
Risk
¶
Bases: StrEnum
Enum representing the risk level of a finding.
Source code in sereto/enums.py
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 | |
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
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |