-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
82 lines (76 loc) · 2.2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import json
config = {
'prod-bora-bq': {
'rs': {
'title': 'bora',
'aws_json': './etc/prod-bora-bq/aws.json',
'db': 'ef4',
'schema': 'bora',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': ['insertid'],
'only_column': [],
},
'bq': {
'title': 'bora',
'project': 'zephyrus-ef4-prod-bora',
'dataset': 'bora',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': [],
'only_column': [],
}
},
'prod-ostro-bq': {
'rs': {
'title': 'ostro',
'aws_json': './etc/prod-ostro-bq/aws.json',
'db': 'ef4',
'schema': 'ostro',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': ['insertid'],
'only_column': [],
},
'bq': {
'title': 'ostro',
'project': 'zephyrus-ef4-prod-ostro',
'dataset': 'ostro',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': [],
'only_column': [],
}
},
'dev-ostro-bq': {
'rs': {
'title': 'dev-ostro',
'aws_json': './etc/dev-ostro-bq/aws.json',
'db': 'ef4',
'schema': 'ostro',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': ['insertid'],
'only_column': [],
},
'bq': {
'title': 'dev-ostro',
'project': 'zephyrus-ef4-dev-ostro',
'dataset': 'ostro',
'time_columns': ['timestamp'],
'ignore_table': [],
'only_table': [],
'ignore_column': [],
'only_column': [],
}
}
}
def load_config(json_file):
with open(json_file) as json_config:
config = json.load(json_config)
return config