quantcli 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. {quantcli-0.1.4/quantcli.egg-info → quantcli-0.1.5}/PKG-INFO +1 -1
  2. {quantcli-0.1.4 → quantcli-0.1.5}/pyproject.toml +1 -1
  3. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/sync/base.py +27 -27
  4. {quantcli-0.1.4 → quantcli-0.1.5/quantcli.egg-info}/PKG-INFO +1 -1
  5. {quantcli-0.1.4 → quantcli-0.1.5}/LICENSE +0 -0
  6. {quantcli-0.1.4 → quantcli-0.1.5}/README.md +0 -0
  7. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/cli.py +0 -0
  8. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/core/__init__.py +0 -0
  9. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/core/backtest.py +0 -0
  10. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/core/data.py +0 -0
  11. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/core/factor.py +0 -0
  12. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/__init__.py +0 -0
  13. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/akshare.py +0 -0
  14. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/baostock.py +0 -0
  15. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/base.py +0 -0
  16. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/cache.py +0 -0
  17. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/mixed.py +0 -0
  18. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/mysql.py +0 -0
  19. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/sync/__init__.py +0 -0
  20. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/sync/akshare.py +0 -0
  21. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/datasources/sync/gm.py +0 -0
  22. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/__init__.py +0 -0
  23. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/base.py +0 -0
  24. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/compute.py +0 -0
  25. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/loader.py +0 -0
  26. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/pipeline.py +0 -0
  27. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/ranking.py +0 -0
  28. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/ranking_executor.py +0 -0
  29. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/screening.py +0 -0
  30. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/factors/screening_executor.py +0 -0
  31. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/models/bar.py +0 -0
  32. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/parser/__init__.py +0 -0
  33. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/parser/constants.py +0 -0
  34. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/parser/formula.py +0 -0
  35. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/__init__.py +0 -0
  36. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/logger.py +0 -0
  37. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/path.py +0 -0
  38. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/symbol_utils.py +0 -0
  39. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/time.py +0 -0
  40. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli/utils/validate.py +0 -0
  41. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli.egg-info/SOURCES.txt +0 -0
  42. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli.egg-info/dependency_links.txt +0 -0
  43. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli.egg-info/entry_points.txt +0 -0
  44. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli.egg-info/requires.txt +0 -0
  45. {quantcli-0.1.4 → quantcli-0.1.5}/quantcli.egg-info/top_level.txt +0 -0
  46. {quantcli-0.1.4 → quantcli-0.1.5}/setup.cfg +0 -0
  47. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_akshare_integration.py +0 -0
  48. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_builtin_factors.py +0 -0
  49. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_cli.py +0 -0
  50. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_datasources.py +0 -0
  51. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_factors.py +0 -0
  52. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_gm_executors.py +0 -0
  53. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_mixed_datasource.py +0 -0
  54. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_multi_factor.py +0 -0
  55. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_pipeline_integration.py +0 -0
  56. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_symbol_utils.py +0 -0
  57. {quantcli-0.1.4 → quantcli-0.1.5}/tests/test_time.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantcli
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: 面向AI的多因子量化选股策略挖掘工具,AI Agent 友好 CLI
5
5
  Author-email: QuantCLI Team <quantcli@example.com>
6
6
  Project-URL: repository, https://github.com/wumu2013/quantcli
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "quantcli"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "面向AI的多因子量化选股策略挖掘工具,AI Agent 友好 CLI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -150,24 +150,24 @@ class DataSync(ABC):
150
150
  def create_sync(
151
151
  source: str,
152
152
  token: str = None,
153
- mysql_host: str = None,
154
- mysql_port: int = None,
155
- mysql_user: str = None,
156
- mysql_password: str = None,
157
- mysql_database: str = None,
158
- mysql_table_prefix: str = None,
153
+ host: str = None,
154
+ port: int = None,
155
+ user: str = None,
156
+ password: str = None,
157
+ database: str = None,
158
+ table_prefix: str = None,
159
159
  ) -> "DataSync":
160
160
  """创建同步器
161
161
 
162
162
  Args:
163
163
  source: 数据源名称 ("gm", "akshare", "baostock")
164
164
  token: API token (仅 gm 需要)
165
- mysql_host: MySQL 主机地址
166
- mysql_port: MySQL 端口
167
- mysql_user: MySQL 用户名
168
- mysql_password: MySQL 密码
169
- mysql_database: MySQL 数据库名
170
- mysql_table_prefix: 表前缀
165
+ host: MySQL 主机地址
166
+ port: MySQL 端口
167
+ user: MySQL 用户名
168
+ password: MySQL 密码
169
+ database: MySQL 数据库名
170
+ table_prefix: 表前缀
171
171
 
172
172
  Returns:
173
173
  DataSync 实例
@@ -184,20 +184,20 @@ def create_sync(
184
184
  >>> sync = create_sync(
185
185
  ... "gm",
186
186
  ... token="your_token",
187
- ... mysql_host="192.168.1.100",
188
- ... mysql_port=3307,
189
- ... mysql_user="quant",
190
- ... mysql_password="secret",
191
- ... mysql_database="quantdb",
192
- ... mysql_table_prefix="test_"
187
+ ... host="192.168.1.100",
188
+ ... port=3307,
189
+ ... user="quant",
190
+ ... password="secret",
191
+ ... database="quantdb",
192
+ ... table_prefix="test_"
193
193
  ... )
194
194
 
195
195
  >>> # 使用 akshare 同步到自定义数据库
196
196
  >>> sync = create_sync(
197
197
  ... "akshare",
198
- ... mysql_host="localhost",
199
- ... mysql_database="mydata",
200
- ... mysql_table_prefix="prod_"
198
+ ... host="localhost",
199
+ ... database="mydata",
200
+ ... table_prefix="prod_"
201
201
  ... )
202
202
  """
203
203
  from ..mysql import MySQLDataSource
@@ -206,12 +206,12 @@ def create_sync(
206
206
 
207
207
  # 创建 MySQL 数据源(传入连接参数)
208
208
  mysql = MySQLDataSource(
209
- host=mysql_host,
210
- port=mysql_port,
211
- user=mysql_user,
212
- password=mysql_password,
213
- database=mysql_database,
214
- table_prefix=mysql_table_prefix,
209
+ host=host,
210
+ port=port,
211
+ user=user,
212
+ password=password,
213
+ database=database,
214
+ table_prefix=table_prefix,
215
215
  )
216
216
 
217
217
  if source == "gm":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quantcli
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: 面向AI的多因子量化选股策略挖掘工具,AI Agent 友好 CLI
5
5
  Author-email: QuantCLI Team <quantcli@example.com>
6
6
  Project-URL: repository, https://github.com/wumu2013/quantcli
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes