siat 3.4.5__py3-none-any.whl → 3.4.7__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_china.py
CHANGED
@@ -57,6 +57,7 @@ if __name__=='__main__':
|
|
57
57
|
ticker='600791.SS'
|
58
58
|
|
59
59
|
ticker="601375.SS"
|
60
|
+
ticker="600305.SS"
|
60
61
|
|
61
62
|
akfs=get_fin_stmt_ak(ticker)
|
62
63
|
|
@@ -3427,8 +3428,8 @@ def str_contain_any_substr(astr,substrlist):
|
|
3427
3428
|
|
3428
3429
|
#==============================================================================
|
3429
3430
|
if __name__=='__main__':
|
3430
|
-
ticker='
|
3431
|
-
fsdates=['
|
3431
|
+
ticker='600305.SS'
|
3432
|
+
fsdates=['2023-6-30','2022-6-30','2021-6-30']
|
3432
3433
|
|
3433
3434
|
fsdf1=get_fin_summary_1ticker_china(ticker,fsdates)
|
3434
3435
|
|
@@ -3455,6 +3456,10 @@ def get_fin_summary_1ticker_china(ticker,fsdates):
|
|
3455
3456
|
_,t1,_=split_prefix_suffix(ticker)
|
3456
3457
|
dft=ak.stock_financial_abstract(t1)
|
3457
3458
|
|
3459
|
+
#akshare错误更正:此处的“营业成本”其实为“营业总成本”
|
3460
|
+
if ("营业成本" in list(dft['指标'])) and not ("营业总成本" in list(dft['指标'])):
|
3461
|
+
dft.loc[dft['指标']=="营业成本","指标"]="营业总成本"
|
3462
|
+
|
3458
3463
|
# 处理金额单位和百分号字段
|
3459
3464
|
# 选项-指标对照表
|
3460
3465
|
option_indicator_df=dft[['选项','指标']]
|
@@ -3633,7 +3638,7 @@ def compare_fin_summary_china(tickers,fsdates,facecolor='whitesmoke',font_size='
|
|
3633
3638
|
typelist=['常用指标','每股指标','营运能力','盈利能力','收益质量','成长能力','财务风险']
|
3634
3639
|
# 手工设定项目显示顺序,使其看起来更合理
|
3635
3640
|
typedict={'常用指标':
|
3636
|
-
['营业总收入(亿元)','
|
3641
|
+
['营业总收入(亿元)','营业总成本(亿元)',
|
3637
3642
|
'净利润(亿元)','扣非净利润(亿元)','归母净利润(亿元)',
|
3638
3643
|
'毛利率%','销售净利率%','期间费用率%',
|
3639
3644
|
'基本每股收益(元)','总资产报酬率(ROA)%','净资产收益率(ROE)%',
|
@@ -3642,7 +3647,7 @@ def compare_fin_summary_china(tickers,fsdates,facecolor='whitesmoke',font_size='
|
|
3642
3647
|
'资产负债率%','商誉(亿元)',],
|
3643
3648
|
|
3644
3649
|
'每股指标':
|
3645
|
-
['每股营业总收入(元)'
|
3650
|
+
['每股营业总收入(元)',#'每股营业收入(元)',
|
3646
3651
|
'每股息税前利润(元)','基本每股收益(元)','稀释每股收益(元)',
|
3647
3652
|
'每股净资产_最新股数(元)','摊薄每股净资产_期末股数(元)','调整每股净资产_期末股数(元)',
|
3648
3653
|
'每股未分配利润(元)','每股留存收益(元)','每股盈余公积金(元)','每股资本公积金(元)',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: siat
|
3
|
-
Version: 3.4.
|
3
|
+
Version: 3.4.7
|
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
|
@@ -35,34 +35,37 @@ Requires-Dist: itables
|
|
35
35
|
Requires-Dist: py-trans
|
36
36
|
Requires-Dist: bottleneck
|
37
37
|
|
38
|
-
|
38
|
+
<center><font size=6>Welcome to SIAT
|
39
39
|
|
40
|
-
#
|
41
|
-
|
42
|
-
|
43
|
-
This version unifies the architecture of stock, bond and investment fund together.
|
40
|
+
# What is siat?
|
41
|
+
siat is a Python plug-in for security investment analysis, specially designed for teaching and learning purposes in universities for undergraduate and postgraduate programs.
|
44
42
|
|
45
|
-
|
43
|
+
Most of the results by siat are in the form of figures and/or tables.
|
44
|
+
# Version history
|
46
45
|
Version structure: X.Y.Z
|
47
46
|
|
48
47
|
X is the major version for architecture upgrade only.
|
49
48
|
Y is the functional version for functional enhancement.
|
50
49
|
Z is the minor version just for bug fixing.
|
51
|
-
# What is siat?
|
52
|
-
siat is a Python plug-in, which stands for security investment analysis toolkit.
|
53
|
-
|
54
|
-
It is specially designed for teaching and learning purposes on security investment in universities for undergraduate and postgraduate programs.
|
55
50
|
# Quick examples of using siat
|
56
51
|
|
57
52
|
|
58
53
|
```python
|
54
|
+
# Enable siat
|
59
55
|
from siat import *
|
60
56
|
```
|
61
57
|
|
58
|
+
|
59
|
+
```python
|
60
|
+
# Set language to English, default is Chinese
|
61
|
+
set_language("English")
|
62
|
+
```
|
63
|
+
|
62
64
|
## Example 1: Apple stock price for the recent month
|
63
65
|
|
64
66
|
|
65
67
|
```python
|
68
|
+
# Simple way: show Apple's stock price in recent month
|
66
69
|
apple=security_trend("AAPL")
|
67
70
|
```
|
68
71
|
You may expect to more information, such as price trend in a recent year (MRY), with the high/low point, current price and average price, like below:
|
@@ -96,6 +99,7 @@ comp=security_trend(['AAPL','MSFT','NVDA'],
|
|
96
99
|
apple=security_technical("AAPL",
|
97
100
|
technical="Bollinger",
|
98
101
|
start="MRQ",
|
102
|
+
facecolor="white",
|
99
103
|
loc1="upper left", loc2="lower right")
|
100
104
|
```
|
101
105
|
|
@@ -111,7 +115,7 @@ apple=security_technical2("AAPL",
|
|
111
115
|
loc1="upper left", loc2="lower right")
|
112
116
|
```
|
113
117
|
|
114
|
-
# What
|
118
|
+
# What security product does siat support?
|
115
119
|
1. Public company profile: world-wide
|
116
120
|
2. Stock & stock market index: world-wide
|
117
121
|
3. Stock valuation: primarily in China (mainland and HK) and the U.S.
|
@@ -125,9 +129,9 @@ apple=security_technical2("AAPL",
|
|
125
129
|
11. Balance sheet: in China (full function) and world-wide (basic function)
|
126
130
|
12. Income statement: in China mainland (full function) and world-wide (basic function)
|
127
131
|
13. Cash flow statement: in China mainland (full function) and world-wide (basic function)
|
128
|
-
14.
|
132
|
+
14. DuPont Identity: world-wide
|
129
133
|
15. Sector trend and valuation: primarily in China
|
130
|
-
# What
|
134
|
+
# What analytical methodology does siat support?
|
131
135
|
1. Trend analysis
|
132
136
|
2. Panel comparation
|
133
137
|
3. Return analysis: rolling returns, holding period returns
|
@@ -184,9 +188,21 @@ upgrade_siat(alternative="tsinghua")
|
|
184
188
|
|
185
189
|
upgrade_siat(alternative="alibaba")
|
186
190
|
|
187
|
-
If the above methods do not work for
|
191
|
+
If the above methods do not work for your environment, you have to goto the traditional ways to use command-line script, such as:
|
188
192
|
|
189
193
|
pip install --upgrade siat
|
194
|
+
|
195
|
+
*** For users in China
|
196
|
+
The pypi mirror websites may provide siat installing and upgrading in a much faster speed in the following commands: taking aliyun as an example
|
197
|
+
|
198
|
+
pip install siat -i https://mirrors.aliyun.com/pypi/simple/
|
199
|
+
|
200
|
+
pip install --upgrade siat https://mirrors.aliyun.com/pypi/simple/
|
201
|
+
|
202
|
+
*** Warning
|
203
|
+
1. The pip command itself may need upgrade as well.
|
204
|
+
2. The pip command sometimes may have conflicts with some vpn programs.
|
205
|
+
If in this case, try quit vpn program, and try again.
|
190
206
|
# Are there more detailed case studies on using siat?
|
191
207
|
YES!
|
192
208
|
|
@@ -197,7 +213,3 @@ https://space.bilibili.com/284812153
|
|
197
213
|
Welcome to follow the channel!
|
198
214
|
# How to report a bug or look for help?
|
199
215
|
Write to the author, Prof. WANG Dehong, wdehong2000@163.com
|
200
|
-
|
201
|
-
```python
|
202
|
-
|
203
|
-
```
|
@@ -41,7 +41,7 @@ siat/financial_statements_test.py,sha256=FLhx8JD-tVVWSBGux6AMz1jioXX4U4bp9DmgFHY
|
|
41
41
|
siat/financials.py,sha256=mbEZSNeHMMFcnPUryQWvdmNlWQvpnOG9eItgS7IVw3k,80458
|
42
42
|
siat/financials2 - 副本.py,sha256=dKlNjIfKeoSy055fQ6E6TUj9HEoO5Ney9grD84J5kfk,14389
|
43
43
|
siat/financials2.py,sha256=7mnsTncKsgwFu8PP4refh5C5iMIO9P0KOMSF87ZyncY,45736
|
44
|
-
siat/financials_china.py,sha256=
|
44
|
+
siat/financials_china.py,sha256=Pgi-CTl7ZT_RxHt70N7wBjMQ_UUAqZFClLh6GpcK0MQ,191709
|
45
45
|
siat/financials_china2.py,sha256=tUvWZhUORrZ0EuCVVkJifbO-8d_hXUyA73OPmOX1CL0,92862
|
46
46
|
siat/financials_china2_test.py,sha256=Erz5k4LyOplBBvYls2MypuqHpVNJ3daiLdyeJezNPu0,2722
|
47
47
|
siat/financials_china2_test2.py,sha256=C8CuYTMHN4Mhp-sTu-Bmg0zMXRCaYV6ezGDoYartRYQ,3507
|
@@ -139,7 +139,7 @@ siat/valuation_china.py,sha256=EkZQaVkoBjM0c4MCNbaX-bMnlG0e3FXeaWczZDnkptU,67784
|
|
139
139
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
140
140
|
siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
|
141
141
|
siat/yf_name.py,sha256=H1EM8YYXA8nQHIqsJlso0I3HKPiJLT3QujO4gRVQXWs,13945
|
142
|
-
siat-3.4.
|
143
|
-
siat-3.4.
|
144
|
-
siat-3.4.
|
145
|
-
siat-3.4.
|
142
|
+
siat-3.4.7.dist-info/METADATA,sha256=CBhvM44KsB402bBfbLnm-GCCgCv3gKurQdlBVG6s7z8,7682
|
143
|
+
siat-3.4.7.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
144
|
+
siat-3.4.7.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
145
|
+
siat-3.4.7.dist-info/RECORD,,
|
File without changes
|