-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
39 lines (31 loc) · 1.25 KB
/
config.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
import sys
import os
if "DATABASE_HOST" in os.environ:
DATABASE_HOST = os.environ['DATABASE_HOST']
else:
print('environment variable [DATABASE_HOST] not found')
sys.exit(1)
if "DATABASE_NAME" in os.environ:
DATABASE_NAME = os.environ['DATABASE_NAME']
else:
print('environment variable [DATABASE_NAME] not found')
sys.exit(1)
if "DATABASE_USER" in os.environ:
DATABASE_USER = os.environ['DATABASE_USER']
else:
print('environment variable [DATABASE_USER] not found')
sys.exit(1)
if "DATABASE_PASSWORD" in os.environ:
DATABASE_PASSWORD = os.environ['DATABASE_PASSWORD']
else:
print('environment variable [DATABASE_PASSWORD] not found')
sys.exit(1)
TEMP_DATA_FILE = 'tempdata.json'
DATA_FILE_FOLDER = 'dawadata'
STREET_DATA = '{0}/street_data.csv'.format(DATA_FILE_FOLDER)
ADDRESS_ACCESS_DATA = '{0}/address_access_data.csv'.format(DATA_FILE_FOLDER)
ADDRESS_DATA = '{0}/address_data.csv'.format(DATA_FILE_FOLDER)
PARISH_ADDRESS_DATA = '{0}/parish_address_data.csv'.format(DATA_FILE_FOLDER)
PARISH_DATA = '{0}/parish_data.csv'.format(DATA_FILE_FOLDER)
POLITICAL_ADDRESS_DATA = '{0}/political_address_data.csv'.format(DATA_FILE_FOLDER)
ADDRESS_ACCESS_DATA_UPDATES = '{0}/address_access_data_updates.json'.format(DATA_FILE_FOLDER)