neurostats-API 0.0.5__py3-none-any.whl → 0.0.6__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.
- neurostats_API/__init__.py +1 -1
- {neurostats_API-0.0.5.dist-info → neurostats_API-0.0.6.dist-info}/METADATA +17 -12
- {neurostats_API-0.0.5.dist-info → neurostats_API-0.0.6.dist-info}/RECORD +5 -5
- {neurostats_API-0.0.5.dist-info → neurostats_API-0.0.6.dist-info}/WHEEL +1 -1
- {neurostats_API-0.0.5.dist-info → neurostats_API-0.0.6.dist-info}/top_level.txt +0 -0
neurostats_API/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__='0.0.
|
1
|
+
__version__='0.0.6'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
|
-
Name:
|
3
|
-
Version: 0.0.
|
2
|
+
Name: neurostats-API
|
3
|
+
Version: 0.0.6
|
4
4
|
Summary: The service of NeuroStats website
|
5
5
|
Home-page: https://github.com/NeurowattStats/NeuroStats_API.git
|
6
6
|
Author: JasonWang@Neurowatt
|
@@ -118,9 +118,10 @@ data = stats_fetcher.query_data()
|
|
118
118
|
|
119
119
|
### 回傳月營收表
|
120
120
|
``` Python
|
121
|
-
from neurostats_API.utils import StatsFetcher
|
121
|
+
from neurostats_API.utils import StatsFetcher, DBClient
|
122
|
+
db_client = DBClient("<連接的DB位置>").get_client()
|
122
123
|
ticker = 2330 # 換成tw50內任意ticker
|
123
|
-
fetcher = StatsFetcher()
|
124
|
+
fetcher = StatsFetcher(db_client)
|
124
125
|
data = stats_fetcher.get_month_revenue_sheet(ticker)
|
125
126
|
```
|
126
127
|
|
@@ -170,9 +171,10 @@ YoY_10 None None ... None None
|
|
170
171
|
### 財務分析: 重要指標
|
171
172
|
對應https://ifa.ai/tw-stock/2330/finance-overview
|
172
173
|
```Python
|
173
|
-
from neurostats_API.
|
174
|
+
from neurostats_API.utils import StatsFetcher, DBClient
|
175
|
+
db_client = DBClient("<連接的DB位置>").get_client()
|
174
176
|
ticker = "2330"
|
175
|
-
fetcher = FinanceOverviewFetcher(ticker = "2330")
|
177
|
+
fetcher = FinanceOverviewFetcher(ticker = "2330", db_client = db_client)
|
176
178
|
data = fetcher.query_data()
|
177
179
|
```
|
178
180
|
|
@@ -253,8 +255,9 @@ markdown
|
|
253
255
|
|
254
256
|
### 損益表
|
255
257
|
```Python
|
256
|
-
from neurostats_API.utils import StatsFetcher
|
257
|
-
|
258
|
+
from neurostats_API.utils import StatsFetcher, DBClient
|
259
|
+
db_client = DBClient("<連接的DB位置>").get_client()
|
260
|
+
fetcher = StatsFetcher(db_client)
|
258
261
|
ticker = 2330 # 換成tw50內任意ticker
|
259
262
|
data = fetcher.get_profit_lose(ticker)
|
260
263
|
```
|
@@ -301,8 +304,9 @@ data = fetcher.get_profit_lose(ticker)
|
|
301
304
|
|
302
305
|
### 資產負債表
|
303
306
|
``` Python
|
304
|
-
from neurostats_API.utils import StatsFetcher
|
305
|
-
|
307
|
+
from neurostats_API.utils import StatsFetcher, DBClient
|
308
|
+
db_client = DBClient("<連接的DB位置>").get_client()
|
309
|
+
fetcher = StatsFetcher(db_client)
|
306
310
|
ticker = 2330 # 換成tw50內任意ticker
|
307
311
|
stats_fetcher.get_balance_sheet(ticker)
|
308
312
|
```
|
@@ -360,8 +364,9 @@ equity 1.094370e+09 53.3 ... 3.390706e+09 56.68
|
|
360
364
|
|
361
365
|
### 現金流量表
|
362
366
|
``` Python
|
363
|
-
from neurostats_API.utils import StatsFetcher
|
364
|
-
|
367
|
+
from neurostats_API.utils import StatsFetcher, DBClient
|
368
|
+
db_client = DBClient("<連接的DB位置>").get_client()
|
369
|
+
fetcher = StatsFetcher(db_client)
|
365
370
|
ticker = 2330 # 換成tw50內任意ticker
|
366
371
|
stats_fetcher.get_cash_flow(ticker)
|
367
372
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
neurostats_API/__init__.py,sha256=
|
1
|
+
neurostats_API/__init__.py,sha256=zzMTjJY407ibU6_ATOPO8KibRVB3tyW9yO0tRYzjTqw,19
|
2
2
|
neurostats_API/cli.py,sha256=UJSWLIw03P24p-gkBb6JSEI5dW5U12UvLf1L8HjQD-o,873
|
3
3
|
neurostats_API/main.py,sha256=QcsfmWivg2Dnqw3MTJWiI0QvEiRs0VuH-BjwQHFCv00,677
|
4
4
|
neurostats_API/fetchers/__init__.py,sha256=k-pPWen3gQNr6d6DPFEXP1Q6SPC6TGIuIFf8w6r75YQ,137
|
@@ -17,7 +17,7 @@ neurostats_API/utils/data_process.py,sha256=AeDWS9eHlHRqzfDKph-14GXERtHLSMKijsIr
|
|
17
17
|
neurostats_API/utils/datetime.py,sha256=I9CIgZdE5OMzUciOS5wvapOVEIrXG_0Qb6iDKfIod6c,574
|
18
18
|
neurostats_API/utils/db_client.py,sha256=OYe6yazcR4Aa6jYmy47JrryUeh2NnKGqY2K_lSZe6i8,455
|
19
19
|
neurostats_API/utils/fetcher.py,sha256=VbrUhjA-GG5AyjPX2SHtFIbZM4dm3jo0RgZzuCbb_Io,40927
|
20
|
-
neurostats_API-0.0.
|
21
|
-
neurostats_API-0.0.
|
22
|
-
neurostats_API-0.0.
|
23
|
-
neurostats_API-0.0.
|
20
|
+
neurostats_API-0.0.6.dist-info/METADATA,sha256=cOomXaKrsCOt1V9ZRTuPgfLCzdWnw0fzWd7PkGKlo8U,20666
|
21
|
+
neurostats_API-0.0.6.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
22
|
+
neurostats_API-0.0.6.dist-info/top_level.txt,sha256=nSlQPMG0VtXivJyedp4Bkf86EOy2TpW10VGxolXrqnU,15
|
23
|
+
neurostats_API-0.0.6.dist-info/RECORD,,
|
File without changes
|