Files
ProxyPool/app/core/__init__.py
祀梦 7bc6d4e4de feat: JSON 配置、质量分与仪表盘,及设置与爬取流程
- 后端改为 config/app.json;pytest 使用 config/app.test.json 与 set_config_file,不再依赖环境变量;移除 pydantic-settings。

- 前端 API/WebSocket 由 config/webui.json 经 Vite define 注入。

- 代理分数按延迟与随机取用次数计算,新增 use_count 与 proxy_scoring;保存设置时同步调度器启停。

- 仪表盘双饼图(可用/待验证协议);设置页去掉调度器启停按钮并移动立即验证;爬取全部结束后自动提交全量验证。

- 删除 script/settings_maintain.py(此前已标记删除)。

Made-with: Cursor
2026-04-05 16:08:32 +08:00

21 lines
512 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""核心基础设施包
注意:不在此模块导入 config / log以免测试在 conftest 中调用 set_config_file 之前
就把配置定死。请使用:
from app.core.config import settings
from app.core.log import logger
"""
from app.core.exceptions import (
PluginNotFoundException,
ProxyNotFoundException,
ProxyPoolException,
ValidationException,
)
__all__ = [
"ProxyPoolException",
"PluginNotFoundException",
"ProxyNotFoundException",
"ValidationException",
]