siat 3.8.44__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/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): lack of python plugin yfinance")
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 ValueError as e:
129
- print(" #Error(get_profile): {e} when processing",ticker)
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.44
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
@@ -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=bXG1FIwNTNvzHGNDH3ZNWFmXCMyD5dy-CTsHI2OKGWM,159614
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.44.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
148
- siat-3.8.44.dist-info/METADATA,sha256=mdg2Kp8DmBRFwYlr6wu6ysSNK0N_-9Co3lk4dKztjGI,8321
149
- siat-3.8.44.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
150
- siat-3.8.44.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
151
- siat-3.8.44.dist-info/RECORD,,
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