-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
52 lines (46 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
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
DATA_DIR = ROOT_DIR + '/data'
inputs = dict(
data = dict(
filename = '01_raw.csv',
filedir = DATA_DIR,
fullpath = DATA_DIR + '/01_raw.csv'
),
rules = dict(
filename = '01_service_rules.csv',
filedir = DATA_DIR,
fullpath = DATA_DIR + '/service_rules.csv'
),
signals = dict(
signup = ['coming', 'back', 'signup', 'signing', 'joining', 'welcome'],
cancellation = ['cancelled', 'cancel']
),
allowed_services = [
'Netflix', 'CBS All Access', 'Hulu', 'Starz', 'Showtime'
]
)
from git import Repo
repo = Repo(ROOT_DIR)
if repo.active_branch.name == 'development':
outputs = dict(
local = dict(
filedir = 'data',
filename = 'dev-processed_data.csv',
fullpath = DATA_DIR + '/dev-processed_data.csv'
),
cloud = dict(
bucket_name = 'antenna-task'
)
)
else:
outputs = dict(
local = dict(
filedir = 'data',
filename = 'processed_data.csv',
fullpath = DATA_DIR + '/processed_data.csv'
),
cloud = dict(
bucket_name = 'antenna-task'
)
)