Files
param-auto-manager/config.py
T

28 lines
688 B
Python
Raw Normal View History

2026-07-12 01:07:26 +08:00
"""
配置文件
"""
import os
class Config:
# 应用配置
PORT = 16043
HOST = '0.0.0.0'
DEBUG = True
# 数据库配置
DATABASE = os.path.join(os.path.dirname(__file__), 'data', 'param_auto.db')
# ParamHub API 配置
PARAMHUB_BASE_URL = 'http://localhost:16041'
PARAMHUB_PASSWORD = 'admin123'
# 搜索配置
SEARCH_MAX_RESULTS = 10 # 每次搜索最多返回结果数
SEARCH_TIMEOUT = 30 # 搜索超时时间(秒)
# 处理配置
PROCESS_INTERVAL = 300 # 处理间隔(秒)
BATCH_SIZE = 5 # 批量处理数量
# 日志配置
LOG_DIR = os.path.join(os.path.dirname(__file__), 'logs')