python-quanta 0.1.1__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.
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-quanta
3
+ Version: 0.1.1
4
+ Summary: A quantitative analysis project for financial data.
5
+ Author-email: Porco Rosso <porcorossobaojiel@gmail.com>
6
+ Project-URL: Homepage, https://github.com/porcorossobaojie/quanta.git
7
+ Keywords: quantitative,finance,data-analysis
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: pandas>=1.3.0
11
+ Requires-Dist: numpy>=1.21.0
12
+ Requires-Dist: scipy>=1.7.0
13
+ Requires-Dist: tomlkit>=0.11.0
14
+ Requires-Dist: python-dotenv>=0.19.0
15
+ Requires-Dist: python-box>=5.4.0
16
+ Requires-Dist: duckdb>=0.8.0
17
+ Requires-Dist: jqdatasdk>=1.8.0
18
+ Requires-Dist: matplotlib>=3.5.0
19
+ Requires-Dist: pymysql>=1.0.0
20
+ Requires-Dist: sqlalchemy>=1.4.0
21
+ Requires-Dist: statsmodels>=0.13.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
24
+ Requires-Dist: flake8>=4.0.0; extra == "dev"
25
+ Requires-Dist: mypy>=0.910; extra == "dev"
26
+ Requires-Dist: ipython>=8.0.0; extra == "dev"
27
+ Requires-Dist: black>=22.0.0; extra == "dev"
28
+ Requires-Dist: isort>=5.0.0; extra == "dev"
29
+
30
+ # quanta
31
+ A 股量化交易系统:
32
+ 提供基于Join Quant的本地数据平台搭建;
33
+ 提供基础类因子;
34
+ 提供金融场景下的函数构造及封装;
@@ -0,0 +1,5 @@
1
+ # quanta
2
+ A 股量化交易系统:
3
+ 提供基于Join Quant的本地数据平台搭建;
4
+ 提供基础类因子;
5
+ 提供金融场景下的函数构造及封装;
@@ -0,0 +1,68 @@
1
+ # D:\codes\quanta\pyproject.toml
2
+ [project]
3
+ name = "python-quanta" # 你的项目名称,建议与你的顶级包名(例如 src/quanta)一致
4
+ version = "0.1.1" # 项目版本号
5
+ description = "A quantitative analysis project for financial data." # 项目的简短描述
6
+ readme = "README.md" # 指向你的 README 文件
7
+ requires-python = ">=3.9" # 项目所需的 Python 版本
8
+ #license = { text = "MIT" } # 示例许可证,你可以改为你的实际许可证,或指向 "LICENSE" 文件
9
+
10
+ keywords = ["quantitative", "finance", "data-analysis"] # 关键词,方便搜索
11
+
12
+ # 项目的作者信息
13
+ authors = [
14
+ { name = "Porco Rosso", email = "porcorossobaojiel@gmail.com" },
15
+ ]
16
+
17
+ # 项目主页(可选)
18
+ urls = { Homepage = "https://github.com/porcorossobaojie/quanta.git" }
19
+
20
+ # 项目运行时依赖
21
+ dependencies = [
22
+ "pandas>=1.3.0",
23
+ "numpy>=1.21.0",
24
+ "scipy>=1.7.0",
25
+ "tomlkit>=0.11.0",
26
+ "python-dotenv>=0.19.0",
27
+ "python-box>=5.4.0",
28
+ "duckdb>=0.8.0",
29
+ "jqdatasdk>=1.8.0",
30
+ "matplotlib>=3.5.0",
31
+ "pymysql>=1.0.0",
32
+ "sqlalchemy>=1.4.0",
33
+ "statsmodels>=0.13.0",
34
+ ]
35
+
36
+ # 可选依赖,例如开发、测试工具
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest>=7.0.0",
40
+ "flake8>=4.0.0",
41
+ "mypy>=0.910",
42
+ "ipython>=8.0.0",
43
+ "black>=22.0.0", # 代码格式化工具
44
+ "isort>=5.0.0", # 导入排序工具
45
+ ]
46
+
47
+ # 构建系统配置
48
+ [build-system]
49
+ requires = ["setuptools>=61.0", "wheel"] # 默认使用 setuptools 构建
50
+ build-backend = "setuptools.build_meta"
51
+
52
+ # Setuptools 特定配置
53
+ [tool.setuptools]
54
+ # 告诉 setuptools 在 'src' 目录中查找包
55
+ # 如果你的代码是直接放在 src/quanta 这样的结构下,且 quanta 是顶层包名
56
+ package-dir = {"" = "src"}
57
+ packages = ["quanta"] # 或者使用 find 自动发现:
58
+ # packages = {find = {where = ["src"]}}
59
+
60
+ # 其他工具的配置,例如 Black
61
+ [tool.black]
62
+ line-length = 88
63
+ target-version = ['py39'] # 根据你的 Python 版本调整
64
+
65
+ # 其他工具的配置,例如 MyPy
66
+ [tool.mypy]
67
+ python_version = "3.9"
68
+ ignore_missing_imports = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-quanta
3
+ Version: 0.1.1
4
+ Summary: A quantitative analysis project for financial data.
5
+ Author-email: Porco Rosso <porcorossobaojiel@gmail.com>
6
+ Project-URL: Homepage, https://github.com/porcorossobaojie/quanta.git
7
+ Keywords: quantitative,finance,data-analysis
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: pandas>=1.3.0
11
+ Requires-Dist: numpy>=1.21.0
12
+ Requires-Dist: scipy>=1.7.0
13
+ Requires-Dist: tomlkit>=0.11.0
14
+ Requires-Dist: python-dotenv>=0.19.0
15
+ Requires-Dist: python-box>=5.4.0
16
+ Requires-Dist: duckdb>=0.8.0
17
+ Requires-Dist: jqdatasdk>=1.8.0
18
+ Requires-Dist: matplotlib>=3.5.0
19
+ Requires-Dist: pymysql>=1.0.0
20
+ Requires-Dist: sqlalchemy>=1.4.0
21
+ Requires-Dist: statsmodels>=0.13.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
24
+ Requires-Dist: flake8>=4.0.0; extra == "dev"
25
+ Requires-Dist: mypy>=0.910; extra == "dev"
26
+ Requires-Dist: ipython>=8.0.0; extra == "dev"
27
+ Requires-Dist: black>=22.0.0; extra == "dev"
28
+ Requires-Dist: isort>=5.0.0; extra == "dev"
29
+
30
+ # quanta
31
+ A 股量化交易系统:
32
+ 提供基于Join Quant的本地数据平台搭建;
33
+ 提供基础类因子;
34
+ 提供金融场景下的函数构造及封装;
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/python_quanta.egg-info/PKG-INFO
4
+ src/python_quanta.egg-info/SOURCES.txt
5
+ src/python_quanta.egg-info/dependency_links.txt
6
+ src/python_quanta.egg-info/requires.txt
7
+ src/python_quanta.egg-info/top_level.txt
8
+ src/quanta/__init__.py
9
+ src/quanta/duckui.py
@@ -0,0 +1,20 @@
1
+ pandas>=1.3.0
2
+ numpy>=1.21.0
3
+ scipy>=1.7.0
4
+ tomlkit>=0.11.0
5
+ python-dotenv>=0.19.0
6
+ python-box>=5.4.0
7
+ duckdb>=0.8.0
8
+ jqdatasdk>=1.8.0
9
+ matplotlib>=3.5.0
10
+ pymysql>=1.0.0
11
+ sqlalchemy>=1.4.0
12
+ statsmodels>=0.13.0
13
+
14
+ [dev]
15
+ pytest>=7.0.0
16
+ flake8>=4.0.0
17
+ mypy>=0.910
18
+ ipython>=8.0.0
19
+ black>=22.0.0
20
+ isort>=5.0.0
@@ -0,0 +1,4 @@
1
+ from quanta import libs
2
+ from quanta import config
3
+ from quanta import data
4
+ from quanta.libs import _flow as flow
@@ -0,0 +1,19 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Created on Tue Jan 13 17:56:33 2026
4
+
5
+ @author: Porco Rosso
6
+ """
7
+
8
+ import subprocess
9
+ from quanta.libs.db.main import main as DuckDB
10
+
11
+ cmd = [
12
+ f"{DuckDB.path}/duckdb.exe",
13
+ f"{DuckDB.path}/{DuckDB.database}.duckdb",
14
+ # "-readonly",
15
+ "-ui"
16
+ ]
17
+
18
+ # 启动 DuckDB UI(会阻塞当前 Python 进程,直到 UI 退出)
19
+ subprocess.run(cmd)