neurostats-API 0.0.21__tar.gz → 0.0.21b0__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 (42) hide show
  1. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/PKG-INFO +3 -3
  2. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/README.md +1 -1
  3. neurostats_api-0.0.21b0/neurostats_API/tools/balance_sheet.yaml +35 -0
  4. neurostats_api-0.0.21b0/neurostats_API/tools/cash_flow_percentage.yaml +39 -0
  5. neurostats_api-0.0.21b0/neurostats_API/tools/finance_overview_dict.yaml +185 -0
  6. neurostats_api-0.0.21b0/neurostats_API/tools/profit_lose.yaml +143 -0
  7. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API.egg-info/PKG-INFO +3 -3
  8. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API.egg-info/SOURCES.txt +4 -0
  9. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API.egg-info/requires.txt +1 -1
  10. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/setup.py +3 -3
  11. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/MANIFEST.in +0 -0
  12. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/__init__.py +0 -0
  13. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/cli.py +0 -0
  14. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/__init__.py +0 -0
  15. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/balance_sheet.py +0 -0
  16. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/base.py +0 -0
  17. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/cash_flow.py +0 -0
  18. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/finance_overview.py +0 -0
  19. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/institution.py +0 -0
  20. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/margin_trading.py +0 -0
  21. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/month_revenue.py +0 -0
  22. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/profit_lose.py +0 -0
  23. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/tech.py +0 -0
  24. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/tej_finance_report.py +0 -0
  25. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/fetchers/value_invest.py +0 -0
  26. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/main.py +0 -0
  27. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/tools/seasonal_data_field_dict.txt +0 -0
  28. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/tools/tej_db/tej_db_index.yaml +0 -0
  29. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/tools/tej_db/tej_db_percent_index.yaml +0 -0
  30. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/tools/tej_db/tej_db_skip_index.yaml +0 -0
  31. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/tools/tej_db/tej_db_thousand_index.yaml +0 -0
  32. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/__init__.py +0 -0
  33. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/calculate_value.py +0 -0
  34. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/data_process.py +0 -0
  35. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/datetime.py +0 -0
  36. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/db_client.py +0 -0
  37. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API/utils/fetcher.py +0 -0
  38. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API.egg-info/dependency_links.txt +0 -0
  39. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/neurostats_API.egg-info/top_level.txt +0 -0
  40. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/setup.cfg +0 -0
  41. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/test/test_fetchers.py +0 -0
  42. {neurostats_api-0.0.21 → neurostats_api-0.0.21b0}/test/test_tej.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neurostats_API
3
- Version: 0.0.21
3
+ Version: 0.0.21b0
4
4
  Summary: The service of NeuroStats website
5
5
  Home-page: https://github.com/NeurowattStats/NeuroStats_API.git
6
6
  Author: JasonWang@Neurowatt
@@ -8,7 +8,7 @@ Author-email: jason@neurowatt.ai
8
8
  Requires-Python: >=3.6
9
9
  Description-Content-Type: text/markdown
10
10
  Requires-Dist: numpy
11
- Requires-Dist: pandas>=2.2.0
11
+ Requires-Dist: pandas
12
12
  Requires-Dist: pymongo
13
13
  Requires-Dist: pytz
14
14
  Requires-Dist: python-dotenv
@@ -89,7 +89,7 @@ pip install neurostats-API
89
89
  ```Python
90
90
  >>> import neurostats_API
91
91
  >>> print(neurostats_API.__version__)
92
- 0.0.21
92
+ 0.0.21b0
93
93
  ```
94
94
 
95
95
  ### 得到最新一期的評價資料與歷年評價
@@ -73,7 +73,7 @@ pip install neurostats-API
73
73
  ```Python
74
74
  >>> import neurostats_API
75
75
  >>> print(neurostats_API.__version__)
76
- 0.0.21
76
+ 0.0.21b0
77
77
  ```
78
78
 
79
79
  ### 得到最新一期的評價資料與歷年評價
@@ -0,0 +1,35 @@
1
+ balance_sheet:
2
+ mode: value_and_percentage
3
+
4
+ total_asset:
5
+ mode: value_and_percentage
6
+ target_index:
7
+ - 資產總額 負債總額 權益總額
8
+ - 資產總計 負債總計 權益總計
9
+
10
+ current_asset:
11
+ mode: value_and_percentage
12
+ target_index:
13
+ - 流動資產合計
14
+
15
+ non_current_asset:
16
+ mode: value_and_percentage
17
+ target_index:
18
+ - 非流動資產合計
19
+
20
+ current_debt:
21
+ mode: value_and_percentage
22
+ target_index:
23
+ - 流動負債合計
24
+ - 流動負債總額
25
+
26
+ non_current_debt:
27
+ mode: value_and_percentage
28
+ target_index:
29
+ - 非流動負債合計
30
+
31
+ equity:
32
+ mode: value_and_percentage
33
+ target_index:
34
+ - 權益總額
35
+ - 權益總計
@@ -0,0 +1,39 @@
1
+ # 注意此並非用於slicing
2
+ CASHO:
3
+ main_index: 營業活動之淨現金流入(流出)
4
+ index:
5
+ - 繼續營業單位稅前淨利(淨損)
6
+ - 收益費損項目合計
7
+ - 折舊費用
8
+ - 攤銷費用
9
+ - 與營業活動相關之資產及負債之淨變動合計
10
+ - 營業活動之淨現金流入(流出)
11
+
12
+ CASHI:
13
+ main_index: 投資活動之淨現金流入(流出)
14
+ index:
15
+ - 投資活動之淨現金流入(流出)
16
+ - 取得不動產、廠房及設備
17
+ - 處分不動產、廠房及設備
18
+ - 取得無形資產
19
+ - 處分無形資產
20
+ - 取得透過損益按公允價值衡量之金融資產
21
+ - 處分透過損益按公允價值衡量之金融資產
22
+ - 取得透過其他綜合損益按公允價值衡量之金融資產
23
+ - 處分透過其他綜合損益按公允價值衡量之金融資產
24
+ - 取得按攤銷後成本衡量之金融資產
25
+ - 處分按攤銷後成本衡量之金融資產
26
+ - 按攤銷後成本衡量之金融資產到期還本
27
+
28
+ CASHO:
29
+ main_index: 籌資活動之淨現金流入(流出)
30
+ index:
31
+ - 籌資活動之淨現金流入(流出)
32
+ - 短期借款增加
33
+ - 短期借款減少
34
+ - 發行公司債
35
+ - 償還公司債
36
+ - 舉借長期借款
37
+ - 償還長期借款
38
+ - 發放現金股利
39
+ - 庫藏股票買回成本
@@ -0,0 +1,185 @@
1
+ # 財務概況
2
+ revenue:
3
+ field:
4
+ - 營業收入合計
5
+ value: value
6
+
7
+ gross_profit:
8
+ field:
9
+ - 營業毛利(毛損)淨額
10
+ value: value
11
+
12
+ operating_income:
13
+ field:
14
+ - 營業利益(損失)
15
+ value: value
16
+
17
+ net_income:
18
+ field:
19
+ - 本期淨利(淨損)
20
+ value: value
21
+
22
+ tax_fee:
23
+ field:
24
+ - 所得稅費用(利益)合計
25
+ value: value
26
+
27
+ # TODO: 以下所爬到的資料都是累計的,Ifa有額外計算當季的變化量
28
+ operating_cash_flow:
29
+ field:
30
+ - 營業活動之淨現金流入(流出)
31
+ value: single_season_value
32
+
33
+ invest_cash_flow:
34
+ field:
35
+ - 投資活動之淨現金流入(流出)
36
+ value: single_season_value
37
+
38
+ financing_cash_flow:
39
+ field:
40
+ - 籌資活動之淨現金流入(流出)
41
+ value: single_season_value
42
+ # ^^^ 以上皆需要額外在DataBase處理
43
+
44
+ # 每股財務狀況
45
+ capital:
46
+ field:
47
+ - 普通股股本
48
+ value: value
49
+
50
+ eps:
51
+ field:
52
+ - 基本每股盈餘
53
+ value: value
54
+
55
+ # 獲利能力
56
+ total_assets:
57
+ field:
58
+ - 資產總額
59
+ value: value
60
+
61
+ equity:
62
+ field:
63
+ - 權益總額
64
+ value: value
65
+
66
+ net_income_before_tax:
67
+ field:
68
+ - 稅前淨利(淨損)
69
+ value: value
70
+
71
+ interest:
72
+ field:
73
+ - 利息收入
74
+ value: value
75
+
76
+ operating_expenses:
77
+ field:
78
+ - 營業費用合計
79
+ value: value
80
+
81
+ net_income_rate:
82
+ field:
83
+ - 本期淨利(淨損)
84
+ value: percentage
85
+ # 成長動能
86
+ revenue_YoY:
87
+ field:
88
+ - 營業收入合計
89
+ value: YoY_1
90
+
91
+ gross_prof_YoY:
92
+ field:
93
+ - 營業毛利(毛損)淨額
94
+ value: YoY_1
95
+
96
+ operating_income_YoY:
97
+ field:
98
+ - 營業利益(損失)
99
+ value: YoY_1
100
+
101
+ net_income_YoY:
102
+ field:
103
+ - 本期淨利(淨損)
104
+ value: YoY_1
105
+
106
+ operating_cash_flow_YoY:
107
+ field:
108
+ - 營業活動之淨現金流入(流出)
109
+ value: single_season_YoY
110
+
111
+ # operating_cash_flow_per_share_YoY:
112
+ # field: 每股營業現金流年成長率
113
+ # value: YoY_1
114
+ # 營運指標
115
+ account_receive:
116
+ field:
117
+ - 應收帳款淨額
118
+ value: value
119
+
120
+ account_pay:
121
+ field:
122
+ - 應付帳款
123
+ value: value
124
+
125
+ inventories:
126
+ field:
127
+ - 存貨
128
+ value: value
129
+
130
+ operating_cost:
131
+ field:
132
+ - 營業成本合計
133
+ value: value
134
+
135
+ application:
136
+ field:
137
+ - 不動產、廠房及設備
138
+ value: value
139
+
140
+ # 財務韌性
141
+ current_assets:
142
+ field:
143
+ - 流動資產合計
144
+ value: value
145
+
146
+ current_liabilities:
147
+ field:
148
+ - 流動負債合計
149
+ value: value
150
+
151
+ total_liabilities:
152
+ field:
153
+ - 負債總額
154
+ value: value
155
+
156
+ short_term_liabilities:
157
+ field:
158
+ - 短期借款
159
+ value: value
160
+
161
+ long_term_liabilities:
162
+ field:
163
+ - 長期借款
164
+ value: value
165
+ #
166
+ cash_and_cash_equivalents:
167
+ field:
168
+ - 現金及約當現金
169
+ value: value
170
+
171
+ interest_expense:
172
+ field:
173
+ - 利息費用
174
+ value: value
175
+
176
+ non_current_assets:
177
+ field:
178
+ - 非流動資產合計
179
+ value: value
180
+
181
+ non_current_liabilities:
182
+ field:
183
+ - 非流動負債合計
184
+ value: value
185
+
@@ -0,0 +1,143 @@
1
+ profit_lose: # 總營收表
2
+ mode: value_and_percentage
3
+
4
+ grand_total_profit_lose:
5
+ mode: grand_total_values
6
+
7
+ revenue:
8
+ mode: growth
9
+ target_index:
10
+ - 營業收入合計
11
+ - 收入合計
12
+ - 利息收入
13
+
14
+ grand_total_revenue:
15
+ mode: grand_total_growth
16
+ target_index:
17
+ - 營業收入合計
18
+ - 收入合計
19
+ - 利息收入
20
+
21
+ gross_profit:
22
+ mode: growth
23
+ target_index:
24
+ - 營業毛利(毛損)淨額
25
+ - 利息淨收益
26
+
27
+ grand_total_gross_profit:
28
+ mode: grand_total_growth
29
+ target_index:
30
+ - 營業毛利(毛損)淨額
31
+ - 利息淨收益
32
+
33
+ gross_profit_percentage:
34
+ mode: percentage
35
+ target_index:
36
+ - 營業毛利(毛損)淨額
37
+ - 利息淨收益
38
+
39
+ grand_total_gross_profit_percentage:
40
+ mode: grand_total_percentage
41
+ target_index:
42
+ - 營業毛利(毛損)淨額
43
+ - 利息淨收益
44
+
45
+ # 營利
46
+ operating_income:
47
+ mode: growth
48
+ target_index:
49
+ - 營業利益(損失)
50
+
51
+ grand_total_operating_income:
52
+ mode: grand_total_growth
53
+ target_index:
54
+ - 營業利益(損失)
55
+
56
+ operating_income_percentage:
57
+ mode: percentage
58
+ target_index:
59
+ - 營業利益(損失)
60
+
61
+ grand_total_operating_income_percentage:
62
+ mode: grand_total_percentage
63
+ target_index:
64
+ - 營業利益(損失)
65
+
66
+ # 稅前淨利
67
+ net_income_before_tax:
68
+ mode: growth
69
+ target_index:
70
+ - 稅前淨利(淨損)
71
+ - 繼續營業單位稅前損益
72
+ - 繼續營業單位稅前淨利(淨損)
73
+
74
+ grand_total_net_income_before_tax:
75
+ mode: grand_total_growth
76
+ target_index:
77
+ - 稅前淨利(淨損)
78
+ - 繼續營業單位稅前損益
79
+ - 繼續營業單位稅前淨利(淨損)
80
+
81
+ net_income_before_tax_percentage:
82
+ mode: percentage
83
+ target_index:
84
+ - 稅前淨利(淨損)
85
+ - 繼續營業單位稅前損益
86
+ - 繼續營業單位稅前淨利(淨損)
87
+
88
+ grand_total_net_income_before_tax_percentage:
89
+ mode: grand_total_percentage
90
+ target_index:
91
+ - 稅前淨利(淨損)
92
+ - 繼續營業單位稅前損益
93
+ - 繼續營業單位稅前淨利(淨損)
94
+
95
+ # 本期淨利
96
+ net_income:
97
+ mode: growth
98
+ target_index:
99
+ - 本期淨利(淨損)
100
+ - 本期稅後淨利(淨損)
101
+
102
+ grand_total_net_income:
103
+ mode: grand_total_growth
104
+ target_index:
105
+ - 本期淨利(淨損)
106
+ - 本期稅後淨利(淨損)
107
+
108
+ net_income_percentage:
109
+ mode: percentage
110
+ target_index:
111
+ - 本期淨利(淨損)
112
+ - 本期稅後淨利(淨損)
113
+
114
+ grand_total_income_percentage:
115
+ mode: grand_total_percentage
116
+ target_index:
117
+ - 本期淨利(淨損)
118
+ - 本期稅後淨利(淨損)
119
+
120
+ # EPS
121
+ EPS:
122
+ mode: value
123
+ target_index:
124
+ - 基本每股盈餘
125
+ - 基本每股盈餘合計
126
+
127
+ EPS_growth:
128
+ mode: growth
129
+ target_index:
130
+ - 基本每股盈餘
131
+ - 基本每股盈餘合計
132
+
133
+ grand_total_EPS:
134
+ mode: grand_total
135
+ target_index:
136
+ - 基本每股盈餘
137
+ - 基本每股盈餘合計
138
+
139
+ grand_total_EPS_growth:
140
+ mode: grand_total_growth
141
+ target_index:
142
+ - 基本每股盈餘
143
+ - 基本每股盈餘合計
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neurostats_API
3
- Version: 0.0.21
3
+ Version: 0.0.21b0
4
4
  Summary: The service of NeuroStats website
5
5
  Home-page: https://github.com/NeurowattStats/NeuroStats_API.git
6
6
  Author: JasonWang@Neurowatt
@@ -8,7 +8,7 @@ Author-email: jason@neurowatt.ai
8
8
  Requires-Python: >=3.6
9
9
  Description-Content-Type: text/markdown
10
10
  Requires-Dist: numpy
11
- Requires-Dist: pandas>=2.2.0
11
+ Requires-Dist: pandas
12
12
  Requires-Dist: pymongo
13
13
  Requires-Dist: pytz
14
14
  Requires-Dist: python-dotenv
@@ -89,7 +89,7 @@ pip install neurostats-API
89
89
  ```Python
90
90
  >>> import neurostats_API
91
91
  >>> print(neurostats_API.__version__)
92
- 0.0.21
92
+ 0.0.21b0
93
93
  ```
94
94
 
95
95
  ### 得到最新一期的評價資料與歷年評價
@@ -21,6 +21,10 @@ neurostats_API/fetchers/profit_lose.py
21
21
  neurostats_API/fetchers/tech.py
22
22
  neurostats_API/fetchers/tej_finance_report.py
23
23
  neurostats_API/fetchers/value_invest.py
24
+ neurostats_API/tools/balance_sheet.yaml
25
+ neurostats_API/tools/cash_flow_percentage.yaml
26
+ neurostats_API/tools/finance_overview_dict.yaml
27
+ neurostats_API/tools/profit_lose.yaml
24
28
  neurostats_API/tools/seasonal_data_field_dict.txt
25
29
  neurostats_API/tools/tej_db/tej_db_index.yaml
26
30
  neurostats_API/tools/tej_db/tej_db_percent_index.yaml
@@ -1,5 +1,5 @@
1
1
  numpy
2
- pandas>=2.2.0
2
+ pandas
3
3
  pymongo
4
4
  pytz
5
5
  python-dotenv
@@ -2,12 +2,12 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='neurostats_API',
5
- version='0.0.21',
5
+ version='0.0.21b',
6
6
  long_description=open('README.md', 'r', encoding='utf-8').read(),
7
7
  long_description_content_type='text/markdown',
8
8
  install_requires=[
9
9
  "numpy",
10
- "pandas>=2.2.0",
10
+ "pandas",
11
11
  "pymongo",
12
12
  "pytz",
13
13
  "python-dotenv",
@@ -17,7 +17,7 @@ setup(
17
17
  packages=find_packages(exclude=['.venv', 'test*', 'data_in_db', '.pytest_cache']),
18
18
  include_package_data=True,
19
19
  # package_dir={'neurostats_service': 'src'},
20
- package_data={'neurostats_API': ['tools/*/*.yaml', 'tools/*.txt']},
20
+ package_data={'neurostats_API': ['tools/*.yaml', 'tools/*/*.yaml', 'tools/*.txt']},
21
21
  author_email='jason@neurowatt.ai',
22
22
  description='The service of NeuroStats website',
23
23
  url='https://github.com/NeurowattStats/NeuroStats_API.git',