-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_framework.py
31 lines (25 loc) · 967 Bytes
/
config_framework.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
class ConfigFramework:
AWS_SECRET = 'xxxx' ## PLUG IN YOUR AWS SECRET
AWS_KEY = 'xxxx'
POSTGRES_ADDRESS = 'raja.db.elephantsql.com' ## INSERT YOUR DB ADDRESS
POSTGRES_PORT = '5432'
POSTGRES_DBNAME = 'ljalsmbf' ## CHANGE THIS TO YOUR DATABASE NAME
POSTGRES_PROPERTIES = {
'user': "ljalsmbf",
'password': "xxxx"
}
@staticmethod
def getAWS_Secret():
return ConfigFramework.AWS_SECRET
@staticmethod
def getAWS_Key():
return ConfigFramework.AWS_KEY
@staticmethod
def getPostgres_URL():
return ('jdbc:postgresql://{ipaddress}:{port}/{dbname}'
.format(ipaddress=ConfigFramework.POSTGRES_ADDRESS
, port=ConfigFramework.POSTGRES_PORT
, dbname=ConfigFramework.POSTGRES_DBNAME))
@staticmethod
def getPostgres_Properties():
return ConfigFramework.POSTGRES_PROPERTIES