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.
Files changed (40) hide show
  1. {multifactor-0.3.1 → multifactor-0.3.2}/PKG-INFO +2 -2
  2. {multifactor-0.3.1 → multifactor-0.3.2}/README.md +1 -1
  3. {multifactor-0.3.1 → multifactor-0.3.2}/pyproject.toml +1 -1
  4. multifactor-0.3.2/src/MultiFactor/Visual.py +90 -0
  5. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/PKG-INFO +2 -2
  6. multifactor-0.3.1/src/MultiFactor/Visual.py +0 -54
  7. {multifactor-0.3.1 → multifactor-0.3.2}/setup.cfg +0 -0
  8. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/__init__.py +0 -0
  9. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/core.py +0 -0
  10. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/momentum.py +0 -0
  11. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/momentum_one.py +0 -0
  12. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/quality.py +0 -0
  13. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/quality_one.py +0 -0
  14. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/score.py +0 -0
  15. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/score_adj_weight.py +0 -0
  16. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/stockinfo.py +0 -0
  17. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_core.py +0 -0
  18. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_momentum.py +0 -0
  19. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_quality.py +0 -0
  20. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_stockinfo.py +0 -0
  21. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/us_value.py +0 -0
  22. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/value.py +0 -0
  23. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/value_one.py +0 -0
  24. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vcompare_idx.py +0 -0
  25. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vfinance_kr.py +0 -0
  26. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_idx.py +0 -0
  27. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_kr.py +0 -0
  28. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vheatmap_us.py +0 -0
  29. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_idx.py +0 -0
  30. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_kr.py +0 -0
  31. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vmulti_us.py +0 -0
  32. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_idx.py +0 -0
  33. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_kr.py +0 -0
  34. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vret_us.py +0 -0
  35. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vtargetprice_us.py +0 -0
  36. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor/vtreemap_us.py +0 -0
  37. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/SOURCES.txt +0 -0
  38. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/dependency_links.txt +0 -0
  39. {multifactor-0.3.1 → multifactor-0.3.2}/src/MultiFactor.egg-info/requires.txt +0 -0
  40. {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.1
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
- visual = Visual()
108
+ vis = Visual()
109
109
  ```
110
110
 
111
111
  <br>
@@ -88,7 +88,7 @@ mf_us = MultiFactorUS(N=50)
88
88
  시각화 분석 객체는 다음 코드로 생성합니다.
89
89
 
90
90
  ```python
91
- visual = Visual()
91
+ vis = Visual()
92
92
  ```
93
93
 
94
94
  <br>
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  # 1. PyPI에 등록될 배포 이름 (pip install MultiFactor)
7
7
  name = "MultiFactor"
8
- version = "0.3.1"
8
+ version = "0.3.2"
9
9
  authors = [
10
10
  { name="HANHO", email="hanhoman@gmail.com" },
11
11
  ]
@@ -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.1
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
- visual = Visual()
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