MultiFactor 0.3.1__tar.gz → 0.3.2__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.
- {multifactor-0.3.1 → multifactor-0.3.2}/PKG-INFO +2 -2
- {multifactor-0.3.1 → multifactor-0.3.2}/README.md +1 -1
- {multifactor-0.3.1 → multifactor-0.3.2}/pyproject.toml +1 -1
- multifactor-0.3.2/src/MultiFactor/Visual.py +90 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/PKG-INFO +2 -2
- multifactor-0.3.1/src/MultiFactor/Visual.py +0 -54
- {multifactor-0.3.1 → multifactor-0.3.2}/setup.cfg +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/__init__.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/core.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/momentum.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/momentum_one.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/quality.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/quality_one.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/score.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/score_adj_weight.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/stockinfo.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_core.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_momentum.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_quality.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_stockinfo.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_value.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/value.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/value_one.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vcompare_idx.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vfinance_kr.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_idx.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_kr.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_us.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_idx.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_kr.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_us.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_idx.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_kr.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_us.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vtargetprice_us.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vtreemap_us.py +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/SOURCES.txt +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/dependency_links.txt +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/requires.txt +0 -0
- {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MultiFactor
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: 멀티팩터 기반 주식 데이터 수집 패키지
|
|
5
5
|
Author-email: HANHO <hanhoman@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -105,7 +105,7 @@ mf_us = MultiFactorUS(N=50)
|
|
|
105
105
|
시각화 분석 객체는 다음 코드로 생성합니다.
|
|
106
106
|
|
|
107
107
|
```python
|
|
108
|
-
|
|
108
|
+
vis = Visual()
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
<br>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
from . import vmulti_idx
|
|
5
|
+
from . import vmulti_kr
|
|
6
|
+
from . import vmulti_us
|
|
7
|
+
from . import vcompare_idx
|
|
8
|
+
from . import vret_idx
|
|
9
|
+
from . import vret_kr
|
|
10
|
+
from . import vret_us
|
|
11
|
+
from . import vfinance_kr
|
|
12
|
+
from . import vheatmap_idx
|
|
13
|
+
from . import vtreemap_us
|
|
14
|
+
from . import vheatmap_kr
|
|
15
|
+
from . import vheatmap_us
|
|
16
|
+
from . import vtargetprice_us
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _set_korean_font():
|
|
20
|
+
try:
|
|
21
|
+
fm = importlib.import_module("matplotlib.font_manager")
|
|
22
|
+
plt = importlib.import_module("matplotlib.pyplot")
|
|
23
|
+
except ImportError:
|
|
24
|
+
return None
|
|
25
|
+
|
|
26
|
+
font_paths = [
|
|
27
|
+
"/usr/share/fonts/truetype/nanum/NanumGothic.ttf",
|
|
28
|
+
"/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf",
|
|
29
|
+
"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc",
|
|
30
|
+
"/usr/share/fonts/opentype/noto/NotoSansCJKkr-Regular.otf",
|
|
31
|
+
"C:/Windows/Fonts/malgun.ttf",
|
|
32
|
+
"C:/Windows/Fonts/malgunbd.ttf",
|
|
33
|
+
"/System/Library/Fonts/AppleSDGothicNeo.ttc",
|
|
34
|
+
"/Library/Fonts/AppleGothic.ttf",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
for font_path in font_paths:
|
|
38
|
+
if os.path.exists(font_path):
|
|
39
|
+
fm.fontManager.addfont(font_path)
|
|
40
|
+
font_name = fm.FontProperties(fname=font_path).get_name()
|
|
41
|
+
plt.rcParams["font.family"] = font_name
|
|
42
|
+
plt.rcParams["axes.unicode_minus"] = False
|
|
43
|
+
return font_name
|
|
44
|
+
|
|
45
|
+
plt.rcParams["axes.unicode_minus"] = False
|
|
46
|
+
return None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Visual:
|
|
50
|
+
def __init__(self):
|
|
51
|
+
self.korean_font = _set_korean_font()
|
|
52
|
+
|
|
53
|
+
def multi_idx(self):
|
|
54
|
+
vmulti_idx.multi_idx()
|
|
55
|
+
|
|
56
|
+
def multi_kr(self):
|
|
57
|
+
vmulti_kr.multi_kr()
|
|
58
|
+
|
|
59
|
+
def multi_us(self):
|
|
60
|
+
vmulti_us.multi_us()
|
|
61
|
+
|
|
62
|
+
def compare_idx(self):
|
|
63
|
+
vcompare_idx.compare_idx()
|
|
64
|
+
|
|
65
|
+
def ret_idx(self):
|
|
66
|
+
vret_idx.ret_idx()
|
|
67
|
+
|
|
68
|
+
def ret_kr(self):
|
|
69
|
+
vret_kr.ret_kr()
|
|
70
|
+
|
|
71
|
+
def ret_us(self):
|
|
72
|
+
vret_us.ret_us()
|
|
73
|
+
|
|
74
|
+
def finance_kr(self):
|
|
75
|
+
vfinance_kr.finance_kr()
|
|
76
|
+
|
|
77
|
+
def heatmap_idx(self):
|
|
78
|
+
vheatmap_idx.heatmap_idx()
|
|
79
|
+
|
|
80
|
+
def treemap_us(self):
|
|
81
|
+
vtreemap_us.treemap_us()
|
|
82
|
+
|
|
83
|
+
def heatmap_kr(self):
|
|
84
|
+
vheatmap_kr.heatmap_kr()
|
|
85
|
+
|
|
86
|
+
def heatmap_us(self):
|
|
87
|
+
vheatmap_us.heatmap_us()
|
|
88
|
+
|
|
89
|
+
def targetprice_us(self):
|
|
90
|
+
vtargetprice_us.targetprice_us()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: MultiFactor
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: 멀티팩터 기반 주식 데이터 수집 패키지
|
|
5
5
|
Author-email: HANHO <hanhoman@gmail.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -105,7 +105,7 @@ mf_us = MultiFactorUS(N=50)
|
|
|
105
105
|
시각화 분석 객체는 다음 코드로 생성합니다.
|
|
106
106
|
|
|
107
107
|
```python
|
|
108
|
-
|
|
108
|
+
vis = Visual()
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
<br>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
from . import vmulti_idx
|
|
2
|
-
from . import vmulti_kr
|
|
3
|
-
from . import vmulti_us
|
|
4
|
-
from . import vcompare_idx
|
|
5
|
-
from . import vret_idx
|
|
6
|
-
from . import vret_kr
|
|
7
|
-
from . import vret_us
|
|
8
|
-
from . import vfinance_kr
|
|
9
|
-
from . import vheatmap_idx
|
|
10
|
-
from . import vtreemap_us
|
|
11
|
-
from . import vheatmap_kr
|
|
12
|
-
from . import vheatmap_us
|
|
13
|
-
from . import vtargetprice_us
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class Visual:
|
|
17
|
-
def multi_idx(self):
|
|
18
|
-
vmulti_idx.multi_idx()
|
|
19
|
-
|
|
20
|
-
def multi_kr(self):
|
|
21
|
-
vmulti_kr.multi_kr()
|
|
22
|
-
|
|
23
|
-
def multi_us(self):
|
|
24
|
-
vmulti_us.multi_us()
|
|
25
|
-
|
|
26
|
-
def compare_idx(self):
|
|
27
|
-
vcompare_idx.compare_idx()
|
|
28
|
-
|
|
29
|
-
def ret_idx(self):
|
|
30
|
-
vret_idx.ret_idx()
|
|
31
|
-
|
|
32
|
-
def ret_kr(self):
|
|
33
|
-
vret_kr.ret_kr()
|
|
34
|
-
|
|
35
|
-
def ret_us(self):
|
|
36
|
-
vret_us.ret_us()
|
|
37
|
-
|
|
38
|
-
def finance_kr(self):
|
|
39
|
-
vfinance_kr.finance_kr()
|
|
40
|
-
|
|
41
|
-
def heatmap_idx(self):
|
|
42
|
-
vheatmap_idx.heatmap_idx()
|
|
43
|
-
|
|
44
|
-
def treemap_us(self):
|
|
45
|
-
vtreemap_us.treemap_us()
|
|
46
|
-
|
|
47
|
-
def heatmap_kr(self):
|
|
48
|
-
vheatmap_kr.heatmap_kr()
|
|
49
|
-
|
|
50
|
-
def heatmap_us(self):
|
|
51
|
-
vheatmap_us.heatmap_us()
|
|
52
|
-
|
|
53
|
-
def targetprice_us(self):
|
|
54
|
-
vtargetprice_us.targetprice_us()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|