wqbkit 0.1.0__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,46 @@
1
+ # Environment variables
2
+ .env
3
+
4
+ # Python
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.so
9
+ .Python
10
+ build/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+
26
+ # Virtual environments
27
+ venv/
28
+ ENV/
29
+ env/
30
+ .venv
31
+
32
+ # IDEs
33
+ .vscode/
34
+ .idea/
35
+ *.swp
36
+ *.swo
37
+ *~
38
+
39
+ # Testing
40
+ .pytest_cache/
41
+ .coverage
42
+ htmlcov/
43
+
44
+ # OS
45
+ .DS_Store
46
+ Thumbs.db
wqbkit-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.4
2
+ Name: wqbkit
3
+ Version: 0.1.0
4
+ Summary: WorldQuant Brain Alpha Research Automation Toolkit
5
+ Project-URL: Homepage, https://github.com/Crotes/wqbkit
6
+ Project-URL: Issues, https://github.com/Crotes/wqbkit/issues
7
+ Author-email: Crotes <Crotes@yeah.net>
8
+ License: MIT
9
+ Keywords: alpha,finance,quantitative,research,trading,worldquant
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Financial and Insurance Industry
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Office/Business :: Financial
18
+ Requires-Python: >=3.10
19
+ Requires-Dist: numpy
20
+ Requires-Dist: pandas
21
+ Requires-Dist: psycopg2-binary
22
+ Requires-Dist: python-dotenv
23
+ Requires-Dist: pytz
24
+ Requires-Dist: requests
25
+ Requires-Dist: scipy
26
+ Requires-Dist: sqlalchemy>=2.0
27
+ Requires-Dist: tqdm
28
+ Provides-Extra: dev
29
+ Requires-Dist: jupyter; extra == 'dev'
30
+ Requires-Dist: matplotlib; extra == 'dev'
31
+ Requires-Dist: pytest; extra == 'dev'
32
+ Description-Content-Type: text/markdown
33
+
34
+ # wqb-toolkit
35
+
36
+ WorldQuant Brain Alpha Research Automation Toolkit
37
+
38
+ ## Overview
39
+
40
+ `wqb-toolkit` is a Python toolkit for automating alpha research workflows on the WorldQuant Brain (WQB) platform. It provides core infrastructure for:
41
+
42
+ - **Alpha Simulation**: Multi-threaded batch simulation with queue-based result handling
43
+ - **Alpha Machine**: Genetic iteration pipeline for alpha expression evolution
44
+ - **Correlation Analysis**: Self, PPAC, prod, and self_web correlation calculations
45
+ - **Database Management**: PostgreSQL ORM with SQLAlchemy for alpha metadata and PnL caching
46
+ - **Super Alpha Tools**: Construction and simulation of SUPER-type alphas
47
+
48
+ ## Installation
49
+
50
+ ```bash
51
+ pip install wqb-toolkit
52
+ ```
53
+
54
+ ### Prerequisites
55
+
56
+ - Python >= 3.10
57
+ - PostgreSQL (for database features)
58
+ - `wqb` SDK (WorldQuant Brain official SDK, install separately)
59
+
60
+ ## Quick Start
61
+
62
+ ```python
63
+ from wqbkit.app.core.alpha_db_core import AlphaDbCore
64
+ from wqbkit.modules.correlation import AlphaCalcCorr
65
+
66
+ core = AlphaDbCore()
67
+ calcor = AlphaCalcCorr()
68
+ ```
69
+
70
+ ## Configuration
71
+
72
+ Create a `.env` file in your project root:
73
+
74
+ ```env
75
+ DB_HOST=localhost
76
+ DB_PORT=5432
77
+ DB_NAME=WorldQuant
78
+ DB_USER=your_db_user
79
+ DB_PASSWORD=your_db_password
80
+ WQB_USERNAME=your_wqb_username
81
+ WQB_PASSWORD=your_wqb_password
82
+ WQB_API_BASE_URL=https://www.worldquantbrain.com
83
+ ```
84
+
85
+ ## License
86
+
87
+ MIT
wqbkit-0.1.0/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # wqb-toolkit
2
+
3
+ WorldQuant Brain Alpha Research Automation Toolkit
4
+
5
+ ## Overview
6
+
7
+ `wqb-toolkit` is a Python toolkit for automating alpha research workflows on the WorldQuant Brain (WQB) platform. It provides core infrastructure for:
8
+
9
+ - **Alpha Simulation**: Multi-threaded batch simulation with queue-based result handling
10
+ - **Alpha Machine**: Genetic iteration pipeline for alpha expression evolution
11
+ - **Correlation Analysis**: Self, PPAC, prod, and self_web correlation calculations
12
+ - **Database Management**: PostgreSQL ORM with SQLAlchemy for alpha metadata and PnL caching
13
+ - **Super Alpha Tools**: Construction and simulation of SUPER-type alphas
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ pip install wqb-toolkit
19
+ ```
20
+
21
+ ### Prerequisites
22
+
23
+ - Python >= 3.10
24
+ - PostgreSQL (for database features)
25
+ - `wqb` SDK (WorldQuant Brain official SDK, install separately)
26
+
27
+ ## Quick Start
28
+
29
+ ```python
30
+ from wqbkit.app.core.alpha_db_core import AlphaDbCore
31
+ from wqbkit.modules.correlation import AlphaCalcCorr
32
+
33
+ core = AlphaDbCore()
34
+ calcor = AlphaCalcCorr()
35
+ ```
36
+
37
+ ## Configuration
38
+
39
+ Create a `.env` file in your project root:
40
+
41
+ ```env
42
+ DB_HOST=localhost
43
+ DB_PORT=5432
44
+ DB_NAME=WorldQuant
45
+ DB_USER=your_db_user
46
+ DB_PASSWORD=your_db_password
47
+ WQB_USERNAME=your_wqb_username
48
+ WQB_PASSWORD=your_wqb_password
49
+ WQB_API_BASE_URL=https://www.worldquantbrain.com
50
+ ```
51
+
52
+ ## License
53
+
54
+ MIT
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "wqbkit"
7
+ version = "0.1.0"
8
+ description = "WorldQuant Brain Alpha Research Automation Toolkit"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ {name = "Crotes", email = "Crotes@yeah.net"},
14
+ ]
15
+ keywords = [
16
+ "worldquant",
17
+ "quantitative",
18
+ "alpha",
19
+ "finance",
20
+ "trading",
21
+ "research",
22
+ ]
23
+ classifiers = [
24
+ "Development Status :: 3 - Alpha",
25
+ "Intended Audience :: Financial and Insurance Industry",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3.10",
29
+ "Programming Language :: Python :: 3.11",
30
+ "Programming Language :: Python :: 3.12",
31
+ "Topic :: Office/Business :: Financial",
32
+ ]
33
+ dependencies = [
34
+ "sqlalchemy>=2.0",
35
+ "psycopg2-binary",
36
+ "pandas",
37
+ "numpy",
38
+ "scipy",
39
+ "requests",
40
+ "python-dotenv",
41
+ "tqdm",
42
+ "pytz",
43
+ ]
44
+
45
+ [project.optional-dependencies]
46
+ dev = ["pytest", "jupyter", "matplotlib"]
47
+
48
+ [project.urls]
49
+ Homepage = "https://github.com/Crotes/wqbkit"
50
+ Issues = "https://github.com/Crotes/wqbkit/issues"
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["wqbkit"]
54
+
55
+ [tool.hatch.build.targets.sdist]
56
+ include = [
57
+ "/wqbkit",
58
+ "/README.md",
59
+ ]