- policy.py:per-group 正交策略(自动解析 / 自动策略 / 禁用策略 / 存储 A·B·C /
公网 / 链接 / 群文件 + 平台限定),list.json v1/v2 → v3 自动迁移,
写入统一走 PolicyStore(加锁 + .tmp 原子替换 + 字段归一)
- 群文件并行通道 group_file.py:打包 zip(可选 pyzipper AES-256)后优先走 S3 预签名、
本地直传兜底;设了密码但 pyzipper 不可用就放弃上传,不退化成明文
- list_proc.py 收敛到「视频策略」统一入口,权限判定改走 policy
- Web 管理页 /hub/video_analysis(群策略 + 链接解析面板)与 services/web_jobs.py
(只复用纯函数层,Web 上下文不发消息;内存任务表 + 并发闸门 + 超时)
- 媒体命名统一到 utils.py({作者}_{作者id}/{作品名}[_短码]),cleanup 回收空目录
- 测试:policy / 命名 / 群文件 / web_jobs 四组
顺带 pyproject 的 pytest 加 testpaths=tests(避免收进 debug/ 下的调试脚本)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
nonebot2[fastapi,websockets,httpx]>=2.1.0
|
|
|
|
# --- 基础运行时 ---
|
|
httpx>=0.23.3
|
|
aiohttp>=3.9.5
|
|
websockets>=10.4
|
|
requests>=2.32.3
|
|
pydantic>=2.7.3
|
|
SQLAlchemy>=2.0.30
|
|
|
|
# --- 图像 / 渲染 ---
|
|
pillow>=10.3.0
|
|
pilmoji>=2.0.4
|
|
CairoSVG>=2.7.1
|
|
playwright>=1.50.0
|
|
nonebot-plugin-htmlrender>=0.6.7 # hexi/core/message_utils.py、helldivers、picstatus
|
|
numpy>=2.2.2
|
|
opencv-contrib-python>=4.10.0.84 # bf_bot
|
|
cjk-textwrap>=0.1.0 # makeaquote
|
|
|
|
# --- 抓取 / 网络 ---
|
|
yt-dlp>=2026.6.9 # video_analysis
|
|
boto3>=1.39.11 # video_analysis S3 存储
|
|
pyzipper>=0.3.6 # video_analysis 群文件压缩包加密(AES)
|
|
cloudscraper>=1.2.71 # picfinder_take
|
|
curl-cffi>=0.14.0 # bf_bot (BF6)
|
|
lxml>=5.4.0 # picfinder_take
|
|
beautifulsoup4>=4.13.3 # steam_info
|
|
mcstatus>=11.1.1 # mc_server_status
|
|
|
|
# --- 文本 / 系统 ---
|
|
jieba>=0.42.1 # learning_chat
|
|
ruamel.yaml>=0.17.40 # learning_chat
|
|
pytz>=2025.1 # steam_info
|
|
psutil>=5.9.5 # web_hub dashboard、picstatus
|
|
py-cpuinfo>=9.0.0 # web_hub dashboard、picstatus
|
|
taskgroup>=0.2.2 # picstatus(仅 py<3.11 需要)
|
|
|
|
# nonebot_plugin_group_daily_analysis
|
|
ulid-py>=1.1.0
|
|
diskcache>=5.6.3
|