-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
22 lines (18 loc) · 979 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import logging
import pathlib
from pathlib import Path
from otlmow_davie.Enums import AuthenticationType, Environment
from TypeTemplateToAssetProcessor import TypeTemplateToAssetProcessor
if __name__ == '__main__':
logging.basicConfig(
format='%(asctime)s %(levelname)-8s %(message)s',
level=logging.INFO,
datefmt='%Y-%m-%d %H:%M:%S')
settings_path = Path('/home/davidlinux/Documents/AWV/resources/settings_TypeTemplateProcessor.json')
this_directory = pathlib.Path(__file__).parent
processor = TypeTemplateToAssetProcessor(sqlite_path=Path(this_directory / 'local_tei.state_db'),
settings_path=settings_path,
auth_type=AuthenticationType.JWT,
environment=Environment.tei,
postenmapping_path=Path('Postenmapping beschermbuis.db'))
processor.process()