Files
ProStock/src/__init__.py
liaozhaorun a56433e440 refactor(factor): 完全重构因子计算框架 - 引入DSL表达式系统
- 删除旧因子框架:移除 base.py、composite.py、data_loader.py、data_spec.py
  及所有子模块(momentum、financial、quality、sentiment等)
- 新增DSL表达式系统:实现 factor DSL 编译器和翻译器
  - dsl.py: 领域特定语言定义
  - compiler.py: AST编译与优化
  - translator.py: Polars表达式翻译
  - api.py: 统一API接口
- 新增数据路由层:data_router.py 实现字段到表的动态路由
- 新增API封装:api_pro_bar.py 提供pro_bar数据接口
- 更新执行引擎:engine.py 适配新的DSL架构
- 重构测试体系:删除旧测试,新增 test_dsl_promotion.py、
  test_factor_integration.py、test_pro_bar.py
- 清理文档:删除8个过时文档(factor_design、db_sync_guide等)
2026-02-27 22:22:23 +08:00

19 lines
505 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.
"""ProStock 股票分析项目
提供股票数据分析和交易策略等功能
"""
__version__ = "1.0.0"
import warnings
from pandas.errors import SettingWithCopyWarning
# 忽略 tushare 库的 FutureWarningfillna method 参数已弃用)
warnings.filterwarnings(
"ignore",
category=FutureWarning,
message=".*fillna with 'method' is deprecated.*",
)
# 忽略 SettingWithCopyWarning常见于 pandas 链式赋值)
warnings.filterwarnings("ignore", category=SettingWithCopyWarning)