neurostats-API 0.0.5__tar.gz → 0.0.6__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/PKG-INFO +16 -11
  2. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/README.md +15 -10
  3. neurostats_API-0.0.6/neurostats_API/__init__.py +1 -0
  4. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API.egg-info/PKG-INFO +17 -12
  5. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/setup.py +1 -1
  6. neurostats_api-0.0.5/neurostats_API/__init__.py +0 -1
  7. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/MANIFEST.in +0 -0
  8. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/cli.py +0 -0
  9. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/__init__.py +0 -0
  10. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/balance_sheet.py +0 -0
  11. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/base.py +0 -0
  12. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/finance_overview.py +0 -0
  13. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/month_revenue.py +0 -0
  14. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/profit_lose.py +0 -0
  15. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/tech.py +0 -0
  16. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/fetchers/value_invest.py +0 -0
  17. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/main.py +0 -0
  18. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/tools/finance_overview_dict.yaml +0 -0
  19. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/tools/profit_lose.yaml +0 -0
  20. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/tools/seasonal_data_field_dict.txt +0 -0
  21. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/utils/__init__.py +0 -0
  22. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/utils/data_process.py +0 -0
  23. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/utils/datetime.py +0 -0
  24. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/utils/db_client.py +0 -0
  25. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API/utils/fetcher.py +0 -0
  26. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API.egg-info/SOURCES.txt +0 -0
  27. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API.egg-info/dependency_links.txt +0 -0
  28. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/neurostats_API.egg-info/top_level.txt +0 -0
  29. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/setup.cfg +0 -0
  30. {neurostats_api-0.0.5 → neurostats_API-0.0.6}/test/test_fetchers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neurostats_API
3
- Version: 0.0.5
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.fetchers import FinanceOverviewFetcher
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
- fetcher = StatsFetcher()
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
- fetcher = StatsFetcher()
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
- fetcher = StatsFetcher()
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
  ```
@@ -108,9 +108,10 @@ data = stats_fetcher.query_data()
108
108
 
109
109
  ### 回傳月營收表
110
110
  ``` Python
111
- from neurostats_API.utils import StatsFetcher
111
+ from neurostats_API.utils import StatsFetcher, DBClient
112
+ db_client = DBClient("<連接的DB位置>").get_client()
112
113
  ticker = 2330 # 換成tw50內任意ticker
113
- fetcher = StatsFetcher()
114
+ fetcher = StatsFetcher(db_client)
114
115
  data = stats_fetcher.get_month_revenue_sheet(ticker)
115
116
  ```
116
117
 
@@ -160,9 +161,10 @@ YoY_10 None None ... None None
160
161
  ### 財務分析: 重要指標
161
162
  對應https://ifa.ai/tw-stock/2330/finance-overview
162
163
  ```Python
163
- from neurostats_API.fetchers import FinanceOverviewFetcher
164
+ from neurostats_API.utils import StatsFetcher, DBClient
165
+ db_client = DBClient("<連接的DB位置>").get_client()
164
166
  ticker = "2330"
165
- fetcher = FinanceOverviewFetcher(ticker = "2330")
167
+ fetcher = FinanceOverviewFetcher(ticker = "2330", db_client = db_client)
166
168
  data = fetcher.query_data()
167
169
  ```
168
170
 
@@ -243,8 +245,9 @@ markdown
243
245
 
244
246
  ### 損益表
245
247
  ```Python
246
- from neurostats_API.utils import StatsFetcher
247
- fetcher = StatsFetcher()
248
+ from neurostats_API.utils import StatsFetcher, DBClient
249
+ db_client = DBClient("<連接的DB位置>").get_client()
250
+ fetcher = StatsFetcher(db_client)
248
251
  ticker = 2330 # 換成tw50內任意ticker
249
252
  data = fetcher.get_profit_lose(ticker)
250
253
  ```
@@ -291,8 +294,9 @@ data = fetcher.get_profit_lose(ticker)
291
294
 
292
295
  ### 資產負債表
293
296
  ``` Python
294
- from neurostats_API.utils import StatsFetcher
295
- fetcher = StatsFetcher()
297
+ from neurostats_API.utils import StatsFetcher, DBClient
298
+ db_client = DBClient("<連接的DB位置>").get_client()
299
+ fetcher = StatsFetcher(db_client)
296
300
  ticker = 2330 # 換成tw50內任意ticker
297
301
  stats_fetcher.get_balance_sheet(ticker)
298
302
  ```
@@ -350,8 +354,9 @@ equity 1.094370e+09 53.3 ... 3.390706e+09 56.68
350
354
 
351
355
  ### 現金流量表
352
356
  ``` Python
353
- from neurostats_API.utils import StatsFetcher
354
- fetcher = StatsFetcher()
357
+ from neurostats_API.utils import StatsFetcher, DBClient
358
+ db_client = DBClient("<連接的DB位置>").get_client()
359
+ fetcher = StatsFetcher(db_client)
355
360
  ticker = 2330 # 換成tw50內任意ticker
356
361
  stats_fetcher.get_cash_flow(ticker)
357
362
  ```
@@ -0,0 +1 @@
1
+ __version__='0.0.6'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: neurostats_API
3
- Version: 0.0.5
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.fetchers import FinanceOverviewFetcher
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
- fetcher = StatsFetcher()
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
- fetcher = StatsFetcher()
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
- fetcher = StatsFetcher()
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
  ```
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='neurostats_API',
5
- version='0.0.5',
5
+ version='0.0.6',
6
6
  long_description=open('README.md', 'r', encoding='utf-8').read(),
7
7
  long_description_content_type='text/markdown',
8
8
  install_requires=[
@@ -1 +0,0 @@
1
- __version__='0.0.5'
File without changes