# ================================
# 闲鱼自动回复系统 - Python依赖包
# ================================

# ==================== 核心Web框架 ====================
fastapi>=0.111.0
uvicorn[standard]>=0.29.0
pydantic>=2.7.0

# ==================== 日志记录 ====================
loguru>=0.7.0

# ==================== 网络通信 ====================
websockets>=10.0,<13.0
aiohttp>=3.9.0
requests>=2.31.0
httpx>=0.25.0

# ==================== 配置文件处理 ====================
PyYAML>=6.0.0

# ==================== JavaScript执行引擎 ====================
PyExecJS>=1.5.1

# ==================== 协议缓冲区解析 ====================
blackboxprotobuf>=1.0.1

# ==================== 系统监控 ====================
psutil>=5.9.0

# ==================== 文件上传支持 ====================
python-multipart>=0.0.6

# ==================== AI回复引擎 ====================
openai>=1.50.0

# ==================== 图像处理 ====================
Pillow>=10.0.0
qrcode[pil]>=7.4.2

# ==================== 浏览器自动化 ====================
# 固定版本：playwright 与其配套的 Chromium revision 强绑定，装了新版 playwright
# 却沿用旧浏览器时，launch 会直接报 "Executable doesn't exist"，滑块验证、
# 扫码登录、账号资料抓取会全部静默失效。
# 升级时必须同步执行：python -m playwright install chromium
playwright==1.60.0
# Playwright 的反检测分支，滑块验证优先用它：同一份 Chromium 下，Playwright 会把
# navigator.webdriver 暴露成 true（最容易被查的自动化标志），Patchright 则是 false。
# API 完全兼容，复用上面那份 Chromium（代码里显式传 executable_path），不额外下载。
patchright>=1.52.0
DrissionPage>=4.0.0

# ==================== 加密和安全 ====================
PyJWT>=2.8.0
passlib[bcrypt]>=1.7.4
cryptography>=41.0.0

# ==================== 时间处理 ====================
python-dateutil>=2.8.2

# ==================== Excel文件处理 ====================
pandas>=2.0.0
openpyxl>=3.1.0

# ==================== 邮件发送 ====================
email-validator>=2.0.0

# ==================== 数据处理和验证 ====================
xlsxwriter>=3.1.0

# ==================== 打包构建工具（运行时不需要） ====================
# nuitka / ordered-set / zstandard 只在把项目编译成二进制时用到，服务本身一行都没 import。
# 装在这里会让 NAS、软路由这类低配设备在 pip install 阶段编译到 CPU 打满甚至 OOM，
# 是"资源被打满、部署不上"的主要来源之一。需要打包时单独装：
#   pip install -r requirements-build.txt

# ==================== 版本说明 ====================
# 本文件包含闲鱼自动回复系统的所有必需依赖
# 版本号已经过测试验证，确保兼容性和稳定性
#
# Python版本要求: 3.11+
#
# 安装命令:
# pip install --upgrade pip
# pip install -r requirements.txt
# playwright install chromium
# playwright install-deps chromium  # Linux系统需要
#
# 注意：DrissionPage需要Chrome/Chromium浏览器支持滑块验证功能
# 如果系统没有Chrome，请先安装Chrome浏览器
#
# ==================== 内置模块说明 ====================
# 以下模块是Python内置模块，无需安装：
# sqlite3, json, base64, hashlib, hmac, time, datetime, os, sys, re, urllib
# asyncio, threading, pathlib, uuid, random, secrets, traceback, logging
# collections, itertools, functools, copy, pickle, gzip, zipfile, shutil
# tempfile, io, csv, xml, html, http, socket, ssl, subprocess, signal
# inspect, ast, enum, math, decimal, array, queue, contextlib, warnings
# typing, dataclasses, weakref, gc, platform, stat, glob, fnmatch, mimetypes
# email, smtplib, imaplib, poplib, ftplib, telnetlib, configparser, argparse