-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhive_mind.py
75 lines (68 loc) · 2.64 KB
/
hive_mind.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
63
64
65
66
67
68
69
70
71
72
73
74
75
"""The place to grab general settings and lists"""
LICENSES: tuple[tuple[str]] = None
TAGS: tuple[tuple[str]] = None
CATEGORIES: tuple[tuple[str]] = None
def get_licenses() -> tuple[tuple[str]]:
# TODO: Get licenses from Superhive API
global LICENSES
if LICENSES is None:
LICENSES = (
("CC0", "CC0", "CC0"),
("CC-BY", "CC-BY", "CC-BY"),
("CC-BY-SA", "CC-BY-SA", "CC-BY-SA"),
("CC-BY-NC", "CC-BY-NC", "CC-BY-NC"),
("CC-BY-ND", "CC-BY-ND", "CC-BY-ND"),
("CC-BY-NC-SA", "CC-BY-NC-SA", "CC-BY-NC-SA"),
("CC-BY-NC-ND", "CC-BY-NC-ND", "CC-BY-NC-ND"),
)
return LICENSES
def get_tags() -> tuple[tuple[str]]:
# TODO: Get tags from Superhive API
global TAGS
if TAGS is None:
TAGS = [
("Architecture", "Architecture", "Architecture"),
("Vehicle", "Vehicle", "Vehicle"),
("Prop", "Prop", "Prop"),
("Environment", "Environment", "Environment"),
("Character", "Character", "Character"),
("Material", "Material", "Material"),
("Texture", "Texture", "Texture"),
("Animation", "Animation", "Animation"),
("FX", "FX", "FX"),
("Lighting", "Lighting", "Lighting"),
("Sound", "Sound", "Sound"),
("Music", "Music", "Music"),
("UI", "UI", "UI"),
("Script", "Script", "Script"),
("Plugin", "Plugin", "Plugin"),
("Addon", "Addon", "Addon"),
("Template", "Template", "Template"),
("Tutorial", "Tutorial", "Tutorial"),
("Documentation", "Documentation", "Documentation"),
("Other", "Other", "Other"),
]
return TAGS
def get_categories() -> tuple[tuple[str]]:
# TODO: Get categories from Superhive API
global CATEGORIES
if CATEGORIES is None:
CATEGORIES = [
("Model", "Model", "Model"),
("Rig", "Rig", "Rig"),
("Animation", "Animation", "Animation"),
("Material", "Material", "Material"),
("Texture", "Texture", "Texture"),
("Sound", "Sound", "Sound"),
("Music", "Music", "Music"),
("FX", "FX", "FX"),
("Lighting", "Lighting", "Lighting"),
("Script", "Script", "Script"),
("Plugin", "Plugin", "Plugin"),
("Addon", "Addon", "Addon"),
("Template", "Template", "Template"),
("Tutorial", "Tutorial", "Tutorial"),
("Documentation", "Documentation", "Documentation"),
("Other", "Other", "Other"),
]
return CATEGORIES