Metadata-Version: 2.1
Name: DIRestInvoker
Version: 0.1.1
Summary: 调用 DIRestPlus 接口，实现Wind、iFinD、Choice接口调用
Home-page: https://github.com/DataIntegrationAlliance/DIRestInvoker
Author: MG
Author-email: mmmaaaggg@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: No Input/Output (Daemon)
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Topic :: Software Development
Requires-Python: >=3.5
Requires-Dist: pandas (>=0.23.0)
Requires-Dist: requests (>=2.19.1)

# DIRestInvoker [![Build Status](https://travis-ci.org/DataIntegrationAlliance/DIRestInvoker.svg?branch=master)](https://travis-ci.org/DataIntegrationAlliance/DIRestInvoker)
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'])
```
----
项目地址：[DIRestInvoker](https://github.com/DataIntegrationAlliance/DIRestInvoker)


