mirror of
https://github.com/ZhuLinsen/daily_stock_analysis
synced 2026-09-20 10:53:33 +08:00
* feat: integrate AlphaSift with DSA runtime enrichment * feat: pin AlphaSift DSA provider context * fix: clean up AlphaSift warning display * fix(review-feedback-1577): pass the headers through a path AlphaSift actually uses, such as a * fix(review-feedback-1577): 补齐 LLM 运行时桥接兼容性的关键证据 * fix: keep AlphaSift screening lightweight * fix(review-feedback-1577): Populate DSA news when reusing context * fix(review-feedback-1577): 补齐外部 LLM/LiteLLM 兼容依据,并修正 docs/CHANGELOG.md 的格式/重复条目问题 * fix(review-feedback-1577): 补齐外部模型/API 兼容依据或在 PR 正文中明确指向已更新文档中的官方来源与迁移/回退边界 * fix(review-feedback-1577): scripts/build-backend.ps1 已随本 PR 调整 AlphaSift 打包/收集逻辑,但完整改动文件列表未包含 * fix(review-feedback-1577): 处理 AlphaSift LLM bridge 对全局 LiteLLM 状态的并发污染风险 * fix: reuse DSA daily history for AlphaSift * fix(review-feedback-1577): 补齐 --collect-all alphasift 或等价 hidden imports,并增加打包产物级导入验证 * fix(review-feedback-1577): fix the macOS AlphaSift package verifier * fix(review-feedback-1577): scripts/build-backend-macos.sh 和 scripts/build-backend.ps1 * fix(review-feedback-1577): 处理运行时阻塞风险、CHANGELOG 删除既有条目,以及补齐外部模型/API 兼容证据 * fix(review-feedback-1577): scripts/build-backend-macos.sh:当前“Verifying packaged AlphaSift * fix(review-feedback-1577): 收敛下面的可用性判断和外部 API/模型兼容证据缺口 * fix(review-feedback-1577): src/config.py、src/core/config registry.py、src/services/alphasift * fix(review-feedback-1577): scripts/build-backend-macos.sh:新增的 packaged AlphaSift importability * fix(review-feedback-1577): make the archive fallback require a dsa adapter entry or exercise the * fix(review-feedback-1577): 处理无关测试改动,并补齐桌面打包文档/验证边界
70 lines
3.3 KiB
Plaintext
70 lines
3.3 KiB
Plaintext
# ===================================
|
|
# Daily Stock Analysis - dependencies
|
|
# ===================================
|
|
|
|
# Core dependencies
|
|
python-dotenv>=1.0.0 # Environment variable configuration
|
|
tenacity>=8.2.0 # Retry support with exponential backoff
|
|
sqlalchemy>=2.0.0 # ORM database access
|
|
schedule>=1.2.0 # Scheduled task runner
|
|
exchange-calendars>=4.13.0 # Trading calendars; 4.5.x is incompatible with pandas 3 Timedelta "T"
|
|
|
|
# Data source dependencies, ordered by fallback priority
|
|
efinance>=0.5.5 # Priority 0: East Money data source https://github.com/Micro-sheep/efinance
|
|
akshare>=1.12.0 # Priority 1: East Money crawler data source
|
|
tushare>=1.4.0 # Priority 2: Tushare Pro API
|
|
pytdx>=1.72 # Priority 2: Tongdaxin quote servers
|
|
baostock>=0.8.0 # Priority 3: Baostock data
|
|
yfinance>=0.2.0 # Priority 4: Yahoo Finance (Fallback)
|
|
longbridge>=0.2.77 # Priority 5: Longbridge OpenAPI fallback for US/HK stocks; OAuth capability checked at runtime
|
|
tickflow>=0.1.0 # TickFlow official SDK (Issue #632, market review enhancement)
|
|
# Built-in optional AlphaSift screening engine
|
|
git+https://github.com/ZhuLinsen/alphasift.git@1a0ed8c99b3615c0cb1076e6029827ffc6de2344#egg=alphasift
|
|
|
|
# Feishu
|
|
lark-oapi>=1.0.0 # Feishu API
|
|
|
|
# Data processing
|
|
pandas>=2.0.0 # Data analysis
|
|
pypinyin>=0.50.0 # Name-to-code resolver (pinyin matching)
|
|
openpyxl>=3.1.0 # Excel (.xlsx) parsing for import
|
|
numpy>=1.24.0 # Numeric computing
|
|
json-repair>=0.55.1 # JSON repair
|
|
|
|
# AI analysis
|
|
# Keep the historical minimum version while excluding quarantined builds and avoiding future major breaks.
|
|
litellm>=1.80.10,!=1.82.7,!=1.82.8,<2.0.0 # Unified LLM client (Gemini/Anthropic/OpenAI/DeepSeek etc.)
|
|
tiktoken>=0.8.0,<0.12.0 # BPE tokenizer for LLM token counting (pin <0.12 to avoid plugin registration issues, #537)
|
|
openai>=1.0.0 # OpenAI SDK (transitive dependency of litellm, kept explicit)
|
|
PyYAML>=6.0 # YAML parser for LITELLM_CONFIG support
|
|
|
|
# Search engines for stock news
|
|
tavily-python>=0.3.0 # Tavily Search API
|
|
google-search-results>=2.4.0 # SerpAPI
|
|
|
|
# Network requests
|
|
requests>=2.31.0 # HTTP requests
|
|
markdown2>=2.4.0 # Markdown to HTML
|
|
imgkit>=1.2.0 # Markdown to image; requires wkhtmltopdf
|
|
fake-useragent>=1.4.0 # Random User-Agent support
|
|
httpx[socks] # HTTP client with SOCKS proxy support; optional OpenAI dependency
|
|
dingtalk-stream >= 0.24.3 # DingTalk Stream SDK
|
|
# Database
|
|
# SQLite is built into Python and does not need an extra package
|
|
|
|
# Discord bot
|
|
discord.py>=2.0.0 # Discord bot development library
|
|
PyNaCl>=1.5.0 # Discord Interaction/Webhook Ed25519 signature verification
|
|
|
|
# Web Content Extraction
|
|
newspaper3k>=0.2.8 # Article extraction
|
|
lxml_html_clean # Fix for lxml.html.clean ImportError in newer lxml versions
|
|
|
|
# Report template engine (Report Engine P0)
|
|
jinja2>=3.1.0 # Jinja2 template engine for report rendering
|
|
|
|
# FastAPI Web framework
|
|
fastapi>=0.109.0 # Modern Python Web framework
|
|
uvicorn[standard]>=0.27.0 # ASGI server
|
|
python-multipart>=0.0.6 # FastAPI File/Form upload support
|