DIRestPlus 
Data Integration RESTPlus,通过Flask-RESTPlus 构建接口框架,将Wind、iFinD、Choice等进行统一封装
启动(两步)
- 编写一份启动脚本 run.py 文件
from direstplus import start_service
start_service()
- 启动脚本
python run.py
如果是Linux系统,使用python3
python3 run.py
外部环境依赖及安装配置
ifind 环境配置
python "d:\IDE\iFinD\bin\x64\installiFinDPy.py" "D:\IDE\iFinD\bin"
测试接口文件安装是否成功
from iFinDPy import *
# 返回 D:\WSPych\RestIFindPy\venv\lib\site-packages\iFinDPy.pth
# 说明安装成功
# 登陆
thsLogin = THS_iFinDLogin("***","***") # 0
thsDataDataPool = THS_DataPool('block','2016-11-27;001005260','date:Y,security_name:Y,thscode:Y')
wind 环境配置
python "d:\IDE\Wind\Wind.NET.Client\WindNET\bin\installWindPy.py" "d:\IDE\Wind\Wind.NET.Client\WindNET"
测试接口文件安装是否成功
from WindPy import w
w.start()
输出内容:
Welcome to use Wind Quant API for Python (WindPy)! COPYRIGHT (C) 2017 WIND INFORMATION CO., LTD. ALL RIGHTS RESERVED. IN NO CIRCUMSTANCE SHALL WIND BE RESPONSIBLE FOR ANY DAMAGES OR LOSSES CAUSED BY USING WIND QUANT API FOR Python. .ErrorCode=0 .Data=[OK!]
Metadata
Release files for DIRestPlus 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| DIRestPlus-0.2.2.tar.gz | 21.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| DIRestPlus-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.9 kB
Release files / DIRestPlus-0.2.2.tar.gz
| Download URL | DIRestPlus-0.2.2.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9e002aad9d2895fe67ab23acde16319f1f40d25ffd11d834bcfdec509ac1807
|
|
BLAKE2b-256 checksum How to use checksums |
31dae487c6c0bfc8ff7bc85ba81b480334cb9cc03d5ac663ff0a59b9af69efb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.5
|
Release files / DIRestPlus-0.2.2-py3-none-any.whl
| Download URL | DIRestPlus-0.2.2-py3-none-any.whl |
|---|---|
| Size | 33.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
881f4e7069b68123852554e1523a257936cd2557ce294065a367275a79e40ea3
|
|
BLAKE2b-256 checksum How to use checksums |
7fcb31ec5e2ba0bc857b0d8af96d476d163f3c65ba6e95a7be86e8c1ab843bcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.5
|
Security for DIRestPlus 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.