-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
67 lines (60 loc) · 1.93 KB
/
settings.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
from pydantic import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
mongo_username: str
mongo_password: str
mongo_host: str
mongo_database: str
mongo_protocol: str
@property
def mongo_url(self):
return f"{self.mongo_protocol}://{self.mongo_username}:{self.mongo_password}@{self.mongo_host}/?retryWrites=true&w=majority"
@lru_cache()
def get_settings():
return Settings()
cluster_by_id = {
"2012073": "Bedrock Cluster",
"2012264": "Bedrock Cluster",
"2012357": "Bedrock Cluster",
"2012316": "Bedrock Cluster",
"2012353": "Bedrock Cluster",
"2012227": "Bedrock Cluster",
"2012408": "Bedrock Cluster",
"2011439": "Big Data Cluster",
"2012123": "Big Data Cluster",
"2012188": "Big Data Cluster",
"2011346": "Big Data Cluster",
"2012080": "Big Data Cluster",
"2012850": "CINET Cluster",
"2012484": "Coastal Cluster",
"2012322": "Coastal Cluster",
"2012670": "Coastal Cluster",
"2011941": "Coastal Cluster",
"2012319": "Coastal Cluster",
"2012475": "Drylands Cluster",
"2012082": "Dust^2 Cluster",
"2011910": "Dust^2 Cluster",
"2012067": "Dust^2 Cluster",
"2012093": "Dust^2 Cluster",
"2012091": "Dust^2 Cluster",
"2012669": "Dynamic Water Cluster",
"2012821": "Dynamic Water Cluster",
"2012796": "Dynamic Water Cluster",
"2012730": "Dynamic Water Cluster",
"2012310": "Dynamic Water Cluster",
"2012878": "GeoMicroBio Cluster",
"2012403": "GeoMicroBio Cluster",
"2012633": "GeoMicroBio Cluster",
"2217532": "GeoMicroBio Cluster",
"2012409": "Urban Cluster",
"2012616": "Urban Cluster",
"2012336": "Urban Cluster",
"2012107": "Urban Cluster",
"2012340": "Urban Cluster",
"2012313": "Urban Cluster",
"2012344": "Urban Cluster",
"2011617": "Urban Cluster",
"2012593": "CZNet Hub",
"2012893": "CZNet Hub",
"2012748": "CZNet Hub",
}