forked from avico78/ADI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (29 loc) · 1.1 KB
/
main.py
File metadata and controls
40 lines (29 loc) · 1.1 KB
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
from app_config.settings import Settings
from app_config.db_config import DBContext
from app_config.task import Task
import os
from pathlib import Path
config_file = Path('app_config','config.yaml')
rules = 'application_conig.rules.'
def main(name):
# Use a breakpoint in the code line below to debug your script.
settings = Settings(config_file=config_file)
customers_list = settings.get(f'{rules}customers_list')
print(customers_list)
exit()
source_db = DBContext().get_db(settings.get('databases.postgres'))
rules_folder= settings.get(f'{rules}folder')
rules_files = settings.get(f'{rules}files')
task_list = []
# for rule_file in rules_files:
# file_path = f'{working_directory}{rules_folder}/{rule_file})'
# print("curr ", file_path)
# task_list.append(Task(file_path))
#
# for task in task_list:
# print(task.load_rules())
# print(source_db.get_engine())
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
main('PyCharm')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/