alphapurify 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Elias Wu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: alphapurify
3
+ Version: 0.1.0
4
+ Summary: A powerful quantitative factor cleaning and analysis library
5
+ Author-email: Elias Wu <elaiswu71@gmail.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
15
+ Requires-Dist: pandas
16
+ Requires-Dist: polars
17
+ Requires-Dist: duckdb
18
+ Requires-Dist: plotly
19
+ Requires-Dist: numpy
20
+ Requires-Dist: scipy
21
+ Requires-Dist: pyarrow
22
+ Requires-Dist: joblib
23
+ Requires-Dist: scikit-learn
24
+ Requires-Dist: tqdm
25
+ Dynamic: license-file
26
+
27
+ # AlphaPurify
28
+
29
+ **AlphaPurify** is a high-performance quantitative factor analysis and purification toolkit designed for institutional-grade research workflows.
30
+
31
+ It provides a fully modular, vectorized, and multiprocessing-enabled framework for factor cleaning, evaluation, exposure decomposition, and portfolio attribution β€” built on a modern Polars-based architecture for large-scale cross-sectional datasets.
32
+
33
+ ---
34
+
35
+ ## πŸš€ Key Features
36
+
37
+ - ⚑ **High Performance**
38
+ - Nearly fully vectorized architecture powered by Polars
39
+ - Optimized for large-scale cross-sectional panel data
40
+ - Memory-efficient structural safeguards
41
+
42
+ - 🧩 **Fully Modular Design**
43
+ - Each module can be used independently
44
+ - Seamlessly integrated into custom research pipelines
45
+ - Minimal coupling between components
46
+
47
+ - πŸ“Š **Comprehensive Factor Research Engine**
48
+ - Cross-sectional IC analysis
49
+ - Horizon autocorrelation
50
+ - Quantile portfolio backtesting
51
+ - Turnover measurement
52
+ - Industry-level attribution
53
+ - Long–short, long-only, and short-only evaluation
54
+
55
+ - πŸ§ͺ **Advanced Factor Cleaning Toolkit**
56
+ - 40+ preprocessing techniques
57
+ - Robust winsorization
58
+ - Regression-based neutralization
59
+ - Polynomial & robust regression options
60
+ - Advanced standardization methods
61
+
62
+ - πŸ“ˆ **Exposure & Return Attribution**
63
+ - Systematic exposure decomposition
64
+ - Residual alpha estimation
65
+ - Cumulative attribution curves
66
+ - Interactive Plotly visualizations
67
+
68
+ - πŸ•’ **Frequency-Agnostic**
69
+ - Supports intraday, daily, weekly, and high-frequency datasets
70
+ - No structural modifications required
71
+
72
+ - πŸ›‘ **Look-Ahead Bias Protection**
73
+ - Forward return construction safeguards
74
+ - Rebalancing alignment protection
75
+ - Parameter-level anti-leakage controls
76
+
77
+ ---
78
+
79
+ ## πŸ“¦ Installation
80
+
81
+ ```bash
82
+ pip install alphapurify
83
+
84
+ ## πŸ“Š Example Workflow
85
+
86
+ from alphapurify import AlphaPurifier, FactorAnalyzer
87
+
88
+ # Load your DataFrame
89
+ df = ...
90
+
91
+ # Clean factor
92
+ cleaned = (
93
+ AlphaPurifier(df, factor_col="alpha")
94
+ .winsorize(method="mad")
95
+ .neutralize(neutralizer_cols=["size", "industry"])
96
+ .standardize(method="zscore")
97
+ .to_result()
98
+ )
@@ -0,0 +1,72 @@
1
+ # AlphaPurify
2
+
3
+ **AlphaPurify** is a high-performance quantitative factor analysis and purification toolkit designed for institutional-grade research workflows.
4
+
5
+ It provides a fully modular, vectorized, and multiprocessing-enabled framework for factor cleaning, evaluation, exposure decomposition, and portfolio attribution β€” built on a modern Polars-based architecture for large-scale cross-sectional datasets.
6
+
7
+ ---
8
+
9
+ ## πŸš€ Key Features
10
+
11
+ - ⚑ **High Performance**
12
+ - Nearly fully vectorized architecture powered by Polars
13
+ - Optimized for large-scale cross-sectional panel data
14
+ - Memory-efficient structural safeguards
15
+
16
+ - 🧩 **Fully Modular Design**
17
+ - Each module can be used independently
18
+ - Seamlessly integrated into custom research pipelines
19
+ - Minimal coupling between components
20
+
21
+ - πŸ“Š **Comprehensive Factor Research Engine**
22
+ - Cross-sectional IC analysis
23
+ - Horizon autocorrelation
24
+ - Quantile portfolio backtesting
25
+ - Turnover measurement
26
+ - Industry-level attribution
27
+ - Long–short, long-only, and short-only evaluation
28
+
29
+ - πŸ§ͺ **Advanced Factor Cleaning Toolkit**
30
+ - 40+ preprocessing techniques
31
+ - Robust winsorization
32
+ - Regression-based neutralization
33
+ - Polynomial & robust regression options
34
+ - Advanced standardization methods
35
+
36
+ - πŸ“ˆ **Exposure & Return Attribution**
37
+ - Systematic exposure decomposition
38
+ - Residual alpha estimation
39
+ - Cumulative attribution curves
40
+ - Interactive Plotly visualizations
41
+
42
+ - πŸ•’ **Frequency-Agnostic**
43
+ - Supports intraday, daily, weekly, and high-frequency datasets
44
+ - No structural modifications required
45
+
46
+ - πŸ›‘ **Look-Ahead Bias Protection**
47
+ - Forward return construction safeguards
48
+ - Rebalancing alignment protection
49
+ - Parameter-level anti-leakage controls
50
+
51
+ ---
52
+
53
+ ## πŸ“¦ Installation
54
+
55
+ ```bash
56
+ pip install alphapurify
57
+
58
+ ## πŸ“Š Example Workflow
59
+
60
+ from alphapurify import AlphaPurifier, FactorAnalyzer
61
+
62
+ # Load your DataFrame
63
+ df = ...
64
+
65
+ # Clean factor
66
+ cleaned = (
67
+ AlphaPurifier(df, factor_col="alpha")
68
+ .winsorize(method="mad")
69
+ .neutralize(neutralizer_cols=["size", "industry"])
70
+ .standardize(method="zscore")
71
+ .to_result()
72
+ )
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: alphapurify
3
+ Version: 0.1.0
4
+ Summary: A powerful quantitative factor cleaning and analysis library
5
+ Author-email: Elias Wu <elaiswu71@gmail.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.txt
15
+ Requires-Dist: pandas
16
+ Requires-Dist: polars
17
+ Requires-Dist: duckdb
18
+ Requires-Dist: plotly
19
+ Requires-Dist: numpy
20
+ Requires-Dist: scipy
21
+ Requires-Dist: pyarrow
22
+ Requires-Dist: joblib
23
+ Requires-Dist: scikit-learn
24
+ Requires-Dist: tqdm
25
+ Dynamic: license-file
26
+
27
+ # AlphaPurify
28
+
29
+ **AlphaPurify** is a high-performance quantitative factor analysis and purification toolkit designed for institutional-grade research workflows.
30
+
31
+ It provides a fully modular, vectorized, and multiprocessing-enabled framework for factor cleaning, evaluation, exposure decomposition, and portfolio attribution β€” built on a modern Polars-based architecture for large-scale cross-sectional datasets.
32
+
33
+ ---
34
+
35
+ ## πŸš€ Key Features
36
+
37
+ - ⚑ **High Performance**
38
+ - Nearly fully vectorized architecture powered by Polars
39
+ - Optimized for large-scale cross-sectional panel data
40
+ - Memory-efficient structural safeguards
41
+
42
+ - 🧩 **Fully Modular Design**
43
+ - Each module can be used independently
44
+ - Seamlessly integrated into custom research pipelines
45
+ - Minimal coupling between components
46
+
47
+ - πŸ“Š **Comprehensive Factor Research Engine**
48
+ - Cross-sectional IC analysis
49
+ - Horizon autocorrelation
50
+ - Quantile portfolio backtesting
51
+ - Turnover measurement
52
+ - Industry-level attribution
53
+ - Long–short, long-only, and short-only evaluation
54
+
55
+ - πŸ§ͺ **Advanced Factor Cleaning Toolkit**
56
+ - 40+ preprocessing techniques
57
+ - Robust winsorization
58
+ - Regression-based neutralization
59
+ - Polynomial & robust regression options
60
+ - Advanced standardization methods
61
+
62
+ - πŸ“ˆ **Exposure & Return Attribution**
63
+ - Systematic exposure decomposition
64
+ - Residual alpha estimation
65
+ - Cumulative attribution curves
66
+ - Interactive Plotly visualizations
67
+
68
+ - πŸ•’ **Frequency-Agnostic**
69
+ - Supports intraday, daily, weekly, and high-frequency datasets
70
+ - No structural modifications required
71
+
72
+ - πŸ›‘ **Look-Ahead Bias Protection**
73
+ - Forward return construction safeguards
74
+ - Rebalancing alignment protection
75
+ - Parameter-level anti-leakage controls
76
+
77
+ ---
78
+
79
+ ## πŸ“¦ Installation
80
+
81
+ ```bash
82
+ pip install alphapurify
83
+
84
+ ## πŸ“Š Example Workflow
85
+
86
+ from alphapurify import AlphaPurifier, FactorAnalyzer
87
+
88
+ # Load your DataFrame
89
+ df = ...
90
+
91
+ # Clean factor
92
+ cleaned = (
93
+ AlphaPurifier(df, factor_col="alpha")
94
+ .winsorize(method="mad")
95
+ .neutralize(neutralizer_cols=["size", "industry"])
96
+ .standardize(method="zscore")
97
+ .to_result()
98
+ )
@@ -0,0 +1,8 @@
1
+ LICENSE.txt
2
+ README.md
3
+ pyproject.toml
4
+ alphapurify/alphapurify.egg-info/PKG-INFO
5
+ alphapurify/alphapurify.egg-info/SOURCES.txt
6
+ alphapurify/alphapurify.egg-info/dependency_links.txt
7
+ alphapurify/alphapurify.egg-info/requires.txt
8
+ alphapurify/alphapurify.egg-info/top_level.txt
@@ -0,0 +1,10 @@
1
+ pandas
2
+ polars
3
+ duckdb
4
+ plotly
5
+ numpy
6
+ scipy
7
+ pyarrow
8
+ joblib
9
+ scikit-learn
10
+ tqdm
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "alphapurify"
7
+ version = "0.1.0"
8
+ description = "A powerful quantitative factor cleaning and analysis library"
9
+ readme = { file = "README.md", content-type = "text/markdown" }
10
+ requires-python = ">=3.10"
11
+
12
+ authors = [
13
+ { name = "Elias Wu", email = "elaiswu71@gmail.com" }
14
+ ]
15
+
16
+ license = { text = "MIT" }
17
+
18
+ classifiers = [
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent"
24
+ ]
25
+
26
+ dependencies = [
27
+ "pandas",
28
+ "polars",
29
+ "duckdb",
30
+ "plotly",
31
+ "numpy",
32
+ "scipy",
33
+ "pyarrow",
34
+ "joblib",
35
+ "scikit-learn",
36
+ "tqdm"
37
+ ]
38
+
39
+ [tool.setuptools.packages.find]
40
+ where = ["alphapurify"]
41
+ include = ["alphapurify*"]
42
+ exclude = ["tests*", "docs*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+