-
Notifications
You must be signed in to change notification settings - Fork 9
/
project_domain.py
62 lines (49 loc) · 1.61 KB
/
project_domain.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
59
60
61
62
"""Project domain module that defines different project domains."""
from enum import Enum
class ProjectDomains(Enum):
"""Defines a set of project domains."""
value: str
ARCHITECTURE = "Architecture"
BINARY_ANALYSIS_FRAMEWORK = "Binary Analysis Framework"
CHAT_CLIENT = "Chat client"
CODEC = "Codec"
COMPRESSION = "Compression"
CPP_LIBRARY = "C++ Library"
C_LIBRARY = "C Library"
DATABASE = "Database"
DATA_STRUCTURES = "Data structures"
DOCUMENTATION = "Documentation"
EDITOR = "Editor"
FILE_FORMAT = "File format"
HPC = "High Performance Applications"
HW_EMULATOR = "Hardware emulator"
MALWARE_ANALYSIS = "Malware Analysis"
PARSER = "Parser"
PLANNING = "Planning"
PROG_LANG = "Programming language"
PROTOCOL = "Protocol"
RENDERING = "Rendering"
SECURITY = "Security"
SIGNAL_PROCESSING = "Signal processing"
SOLVER = "Solver"
TEST = "Test project"
UNIX_TOOLS = "UNIX utils"
VERSION_CONTROL = "Version control"
WEB_TOOLS = "Web tools"
def __str__(self) -> str:
return str(self.value)
def __lt__(self, other: object) -> bool:
if isinstance(other, ProjectDomains):
return self.value < other.value
return False
class ProjectGroups(Enum):
"""Defines a set of project groups."""
value: str
C_PROJECTS = "c_projects"
CPP_PROJECTS = "cpp_projects"
def __str__(self) -> str:
return str(self.value)
def __lt__(self, other: object) -> bool:
if isinstance(other, ProjectGroups):
return self.value < other.value
return False