analyser_hj3415 2.8.2__py2.py3-none-any.whl → 2.8.3__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- analyser_hj3415/cli.py +9 -5
- {analyser_hj3415-2.8.2.dist-info → analyser_hj3415-2.8.3.dist-info}/METADATA +1 -1
- {analyser_hj3415-2.8.2.dist-info → analyser_hj3415-2.8.3.dist-info}/RECORD +6 -6
- {analyser_hj3415-2.8.2.dist-info → analyser_hj3415-2.8.3.dist-info}/LICENSE +0 -0
- {analyser_hj3415-2.8.2.dist-info → analyser_hj3415-2.8.3.dist-info}/WHEEL +0 -0
- {analyser_hj3415-2.8.2.dist-info → analyser_hj3415-2.8.3.dist-info}/entry_points.txt +0 -0
analyser_hj3415/cli.py
CHANGED
@@ -44,9 +44,8 @@ def analyser_manager():
|
|
44
44
|
# tsa 명령어 서브파서
|
45
45
|
tsa_parser = type_subparsers.add_parser('tsa', help='Time serial analysis 타입')
|
46
46
|
tsa_subparser = tsa_parser.add_subparsers(dest='command', help='tsa 관련된 명령')
|
47
|
-
#
|
48
|
-
ranking_parser =
|
49
|
-
ranking_parser.add_argument('-e', '--expect_earn', type=float, help='기대수익률 (실수 값 입력)')
|
47
|
+
# ranking 파서
|
48
|
+
ranking_parser = tsa_subparser.add_parser('ranking', help='tsa 랭킹 책정 및 레디스 저장')
|
50
49
|
ranking_parser.add_argument('-r', '--refresh', action='store_true', help='래디스 캐시를 사용하지 않고 강제로 재계산 할지')
|
51
50
|
ranking_parser.add_argument('-n', '--noti', action='store_true', help='작업 완료 후 메시지 전송 여부')
|
52
51
|
|
@@ -110,7 +109,7 @@ def analyser_manager():
|
|
110
109
|
|
111
110
|
args = parser.parse_args()
|
112
111
|
|
113
|
-
from analyser_hj3415 import eval
|
112
|
+
from analyser_hj3415 import eval, tsa
|
114
113
|
|
115
114
|
if args.type == 'red':
|
116
115
|
if args.command == 'get':
|
@@ -204,7 +203,12 @@ def analyser_manager():
|
|
204
203
|
pprint.pprint(growth.get(args.refresh))
|
205
204
|
if args.noti:
|
206
205
|
noti.telegram_to('manager', f"오늘의 Growth({args.code})를 레디스 캐시에 저장했습니다.(유효 12시간)")
|
207
|
-
|
206
|
+
elif args.type == 'tsa':
|
207
|
+
if args.command == 'ranking':
|
208
|
+
result = tsa.MyProphet.ranking(refresh=args.refresh)
|
209
|
+
print(result)
|
210
|
+
if args.noti:
|
211
|
+
noti.telegram_to('manager', "오늘의 tsa ranking을 레디스캐시에 저장했습니다.(유효 12시간)")
|
208
212
|
elif args.type == 'setting':
|
209
213
|
if args.command == 'set':
|
210
214
|
settings_manager.set_value(args.title, args.value)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
analyser_hj3415/.DS_Store,sha256=qr9-0FPn5CFKe6kEu8_dWCNhzQ0sN7bwQgffKsaJEEo,6148
|
2
2
|
analyser_hj3415/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
analyser_hj3415/cli.py,sha256=
|
3
|
+
analyser_hj3415/cli.py,sha256=6ZPAkU2b3bYx82_e3X1DvWUWUKUUZMc1crXHS4yvUFA,11924
|
4
4
|
analyser_hj3415/eval.py,sha256=4F0GIknCogAhv_iTq8auLrmwW20u8kH0HY0fP4SaVa4,39099
|
5
5
|
analyser_hj3415/tsa.py,sha256=3mZ0hjUNt202MAytnjAYAoG1Cj9Zl6S_Rmz39_0iC98,7875
|
6
6
|
analyser_hj3415/workroom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -9,8 +9,8 @@ analyser_hj3415/workroom/mysklearn.py,sha256=wJXKz5MqqTzADdG2mqRMMzc_G9RzwYjj5_j
|
|
9
9
|
analyser_hj3415/workroom/mysklearn2.py,sha256=1lIy6EWEQHkOzDS-av8U0zQH6DuCLKWMI73dnJx5KRs,1495
|
10
10
|
analyser_hj3415/workroom/score.py,sha256=P6nHBJYmyhigGtT4qna4BmNtvt4B93b7SKyzdstJK24,17376
|
11
11
|
analyser_hj3415/workroom/trash.py,sha256=zF-W0piqkGr66UP6-iybo9EXh2gO0RP6R1FnIpsGkl8,12262
|
12
|
-
analyser_hj3415-2.8.
|
13
|
-
analyser_hj3415-2.8.
|
14
|
-
analyser_hj3415-2.8.
|
15
|
-
analyser_hj3415-2.8.
|
16
|
-
analyser_hj3415-2.8.
|
12
|
+
analyser_hj3415-2.8.3.dist-info/entry_points.txt,sha256=ZfjPnJuH8SzvhE9vftIPMBIofsc65IAWYOhqOC_L5ck,65
|
13
|
+
analyser_hj3415-2.8.3.dist-info/LICENSE,sha256=QVKTp0dTnB5xG8RLgG17LwSWCKNEzYoVVM6KjoCPKc0,1079
|
14
|
+
analyser_hj3415-2.8.3.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
15
|
+
analyser_hj3415-2.8.3.dist-info/METADATA,sha256=0dU99-ahUJ2iUbdYajmHp-oUd42tciwREnnQRE--QDk,6607
|
16
|
+
analyser_hj3415-2.8.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|