siat 3.8.43__py3-none-any.whl → 3.8.45__py3-none-any.whl
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.
- siat/financials.py +3 -3
- siat/stock.py +10 -3
- {siat-3.8.43.dist-info → siat-3.8.45.dist-info}/METADATA +2 -2
- {siat-3.8.43.dist-info → siat-3.8.45.dist-info}/RECORD +7 -7
- {siat-3.8.43.dist-info → siat-3.8.45.dist-info}/LICENSE +0 -0
- {siat-3.8.43.dist-info → siat-3.8.45.dist-info}/WHEEL +0 -0
- {siat-3.8.43.dist-info → siat-3.8.45.dist-info}/top_level.txt +0 -0
siat/financials.py
CHANGED
@@ -476,9 +476,9 @@ def compare_snapshot(ticker,indicator, \
|
|
476
476
|
|
477
477
|
# 未找到任何股票信息
|
478
478
|
if len(df) == 0:
|
479
|
-
print("\n #Warning(compare_snapshot): no {indicator}
|
480
|
-
print(" Reasons: wrong
|
481
|
-
print("
|
479
|
+
print(f"\n #Warning(compare_snapshot): no {indicator} found for specified stocks")
|
480
|
+
print(" Reasons: wrong codes, failed to access to or fetch info from Yahoo Finance")
|
481
|
+
print(" Feel weired? upgrade yahooquery, which may need certain versions of lxml")
|
482
482
|
return None
|
483
483
|
|
484
484
|
#处理小数点
|
siat/stock.py
CHANGED
@@ -112,7 +112,7 @@ def get_profile(ticker):
|
|
112
112
|
try:
|
113
113
|
import yfinance as yf
|
114
114
|
except:
|
115
|
-
print(" #Error(get_profile):
|
115
|
+
print(" #Error(get_profile): need to install yfinance")
|
116
116
|
return None
|
117
117
|
|
118
118
|
ticker1=ticker
|
@@ -125,9 +125,16 @@ def get_profile(ticker):
|
|
125
125
|
tp=yf.Ticker(ticker1)
|
126
126
|
try:
|
127
127
|
dic=tp.info
|
128
|
-
except
|
129
|
-
print(" #Error(get_profile): {
|
128
|
+
except:
|
129
|
+
print(f" #Error(get_profile): failed to retrieve info for {ticker}")
|
130
|
+
print(" Solution: upgrade yfinance if already accessible to Yahoo")
|
131
|
+
return None
|
132
|
+
|
133
|
+
if dic is None:
|
134
|
+
print(f" #Error(get_profile): none retrieved for {ticker}")
|
135
|
+
print(" Solution: upgrade yfinance if already accessible to Yahoo")
|
130
136
|
return None
|
137
|
+
|
131
138
|
|
132
139
|
#将字典转换为数据框
|
133
140
|
import pandas as pd
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: siat
|
3
|
-
Version: 3.8.
|
3
|
+
Version: 3.8.45
|
4
4
|
Summary: Securities Investment Analysis Tools (siat)
|
5
5
|
Home-page: https://pypi.org/project/siat/
|
6
6
|
Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
|
@@ -17,7 +17,6 @@ Requires-Dist: urllib3
|
|
17
17
|
Requires-Dist: mplfinance
|
18
18
|
Requires-Dist: statsmodels
|
19
19
|
Requires-Dist: yahoo_earnings_calendar
|
20
|
-
Requires-Dist: yahooquery
|
21
20
|
Requires-Dist: pypinyin
|
22
21
|
Requires-Dist: seaborn
|
23
22
|
Requires-Dist: numpy
|
@@ -40,6 +39,7 @@ Requires-Dist: translators
|
|
40
39
|
Requires-Dist: nbconvert
|
41
40
|
Requires-Dist: ipywidgets
|
42
41
|
Requires-Dist: playwright
|
42
|
+
Requires-Dist: yahooquery
|
43
43
|
Dynamic: author
|
44
44
|
Dynamic: author-email
|
45
45
|
Dynamic: description
|
@@ -42,7 +42,7 @@ siat/fin_stmt2_yahoo.py,sha256=LGmspk0nKyz4X87MtcovZXUfMQkAvrWINuxR4HQ8PI8,41178
|
|
42
42
|
siat/financial_base.py,sha256=A1rV7XQOVFpCXCV-T6Ge0QeF897hINiu0olN1XWeaFk,41287
|
43
43
|
siat/financial_statements.py,sha256=xx0SMpFqAMKm6cj8uYeG2RpJE6G-RoJ3NWa33UyaVMk,25414
|
44
44
|
siat/financial_statements_test.py,sha256=FLhx8JD-tVVWSBGux6AMz1jioXX4U4bp9DmgFHYXb_w,716
|
45
|
-
siat/financials.py,sha256=
|
45
|
+
siat/financials.py,sha256=hcXcwozYhfMtW6cTE2bDp5R80-IEKAyUHFO6mJ87GXQ,86267
|
46
46
|
siat/financials2 - 副本.py,sha256=dKlNjIfKeoSy055fQ6E6TUj9HEoO5Ney9grD84J5kfk,14389
|
47
47
|
siat/financials2.py,sha256=YF-A-5iSTzLXTFI0sDGju4_6T87wWC9IlFd4fSXbJXw,50805
|
48
48
|
siat/financials_china.py,sha256=Hu85JOKnCmcTHgblIvHhsV-6c-Y15HFGNR_ZaaJt8nM,191974
|
@@ -109,7 +109,7 @@ siat/security_trend2-20240620.py,sha256=QVnEcb7AyVbO77jVqfFsJffGXrX8pgJ9xCfoAKmW
|
|
109
109
|
siat/security_trend2.py,sha256=8-Z-PWaX8fjnyAyfxEp3qXdVllgDpRISOASKEn7Zeoc,30706
|
110
110
|
siat/setup.py,sha256=up65rQGLmTBkhtaMLowjoQXYmIsnycnm4g1SYmeQS6o,1335
|
111
111
|
siat/shenwan index history test.py,sha256=JCVAzOSEldHalhSFa3pqD8JI_8_djPMQOxpkuYU-Esg,1418
|
112
|
-
siat/stock.py,sha256=
|
112
|
+
siat/stock.py,sha256=zzxRzklawWjBqcx0_eExpD0bsKyXHoc-Z66ibKuk-pA,159887
|
113
113
|
siat/stock_advice_linear.py,sha256=-twT7IGP-NEplkL1WPSACcNJjggRB2j4mlAQCkzOAuo,31655
|
114
114
|
siat/stock_base.py,sha256=uISvbRyOGy8p9QREA96CVydgflBkn5L3OXOGKl8oanc,1312
|
115
115
|
siat/stock_china.py,sha256=85Ggb21E2mrCYMdSSTTrkoyyLGXMK2V-BtlweHomSRg,93460
|
@@ -144,8 +144,8 @@ siat/valuation_china.py,sha256=eSKIDckyjG8QkENlW_OKkqbQHno8pzDcomBO9iGNJVM,83079
|
|
144
144
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
145
145
|
siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
|
146
146
|
siat/yf_name.py,sha256=laNKMTZ9hdenGX3IZ7G0a2RLBKEWtUQJFY9CWuk_fp8,24058
|
147
|
-
siat-3.8.
|
148
|
-
siat-3.8.
|
149
|
-
siat-3.8.
|
150
|
-
siat-3.8.
|
151
|
-
siat-3.8.
|
147
|
+
siat-3.8.45.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
|
148
|
+
siat-3.8.45.dist-info/METADATA,sha256=ZS4GB68M4MPQzwpUD8OqhaTEZZavBO2-W1Fg0l7frNk,8321
|
149
|
+
siat-3.8.45.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
150
|
+
siat-3.8.45.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
151
|
+
siat-3.8.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|