Initial commit: Flask stats API (v1 PharmIT3000, v2 PMPLUS20)

This commit is contained in:
청춘약국
2026-04-01 22:10:15 +09:00
commit 8e6552724a
8 changed files with 1120 additions and 0 deletions

19
config.py Normal file
View File

@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
"""DB 연결 설정"""
import os
# PharmIT3000 (v1)
PHARMIT3000_CONFIG = {
'server': os.getenv('PHARMIT_SERVER', '192.168.0.4\\PM2014'),
'database': 'PM_PRES',
'username': os.getenv('PHARMIT_USER', 'sa'),
'password': os.getenv('PHARMIT_PASS', 'tmddls214!%('),
}
# PMPLUS20 (v2)
PMPLUS20_CONFIG = {
'server': os.getenv('PMPLUS_SERVER', '192.168.0.4\\PM2014'),
'database': 'PM_MAIN',
'username': os.getenv('PMPLUS_USER', 'sa'),
'password': os.getenv('PMPLUS_PASS', 'tmddls214!%('),
}