DIRestInvoker-0.2.2
توضیحات
调用 DIRestPlus 接口,实现Wind、iFinD、Choice接口调用
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | DIRestInvoker-0.2.2 |
| نام | DIRestInvoker |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | MG |
| ایمیل نویسنده | mmmaaaggg@163.com |
| آدرس صفحه اصلی | https://github.com/DataIntegrationAlliance/DIRestInvoker |
| آدرس اینترنتی | https://pypi.org/project/DIRestInvoker/ |
| مجوز | - |
# DIRestInvoker
[](https://travis-ci.org/DataIntegrationAlliance/DIRestInvoker)
[](https://github.com/DataIntegrationAlliance/DIRestInvoker/issues)
[](https://github.com/DataIntegrationAlliance/DIRestInvoker/network)
[](https://github.com/DataIntegrationAlliance/DIRestInvoker/stargazers)
[](https://github.com/DataIntegrationAlliance/DIRestInvoker/blob/master/LICENSE)
[](http://hits.dwyl.io/DataIntegrationAlliance/https://github.com/DataIntegrationAlliance/DIRestInvoker)
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FDataIntegrationAlliance%2FDIRestInvoker)
Data Integration RESTPlus Invoker,调用 [DIRestPlus](https://github.com/DataIntegrationAlliance/DIRestPlus) 接口,实现Wind、iFinD、Choice接口调用
## 安装
```commandline
pip install DIRestInvoker
```
## iFinD接口调用举例
```python
from direstinvoker.ifind import IFinDInvoker, APIError
url_str = "http://localhost:5000/iFind/"
invoker = IFinDInvoker(url_str)
```
### THS_DateQuery
```python
try:
data_df = invoker.THS_DateQuery('SSE', 'dateType:0,period:D,dateFormat:0', '2018-06-15', '2018-06-21')
print(data_df)
except APIError as exp:
if exp.status == 500:
print('APIError.status:', exp.status, exp.ret_dic['message'])
else:
print(exp.ret_dic.setdefault('error_code', ''), exp.ret_dic['message'])
```
## 修改历史
* version 0.1.4
> THS_BasicData 支持 list 作为 thsCode 参数,并且支持按一定数量自动分割发送(解决大批量数据请求的情况下,20W数字限制,可能引发-205错误的问题)
----
项目地址:[DIRestInvoker](https://github.com/DataIntegrationAlliance/DIRestInvoker)
نیازمندی
| مقدار | نام |
|---|---|
| >=0.23.0 | pandas |
| >=2.19.1 | requests |
| >=1.1.0 | xlrd |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl DIRestInvoker-0.2.2:
pip install DIRestInvoker-0.2.2.whl
نصب پکیج tar.gz DIRestInvoker-0.2.2:
pip install DIRestInvoker-0.2.2.tar.gz