qcloudapi3是为了让Python3开发者能够在自己的代码里更快捷方便的使用腾讯云的API而开发的SDK工具包。
Project description
qcloudapi3是为了让Python3开发者能够在自己的代码里更快捷方便的使用腾讯云的API而开发的Python库。
Example
>>> from qcloudapi3 import QcloudApi >>> _module = 'wenzhi' >>> action = 'TextSentiment' >>> config = { >>> 'Region': 'gz', >>> 'secretId': '123', >>> 'secretKey': '000', >>> 'method': 'post' >>> } >>> params = { >>> "content": "所有人都很差劲。", >>> } >>> service = QcloudApi(_module, config) >>> print('URL: >>> _module = 'wenzhi' >>> action = 'TextSentiment' >>> config = { >>> 'Region': 'gz', >>> 'secretId': '123', >>> 'secretKey': '000', >>> 'method': 'post' >>> } >>> params = { >>> "content": "所有人都很差劲。", >>> } >>> service = QcloudApi(_module, config) >>> print('URL:\n' + service.generateUrl(action, params)) >>> print(service.call(action, params)) URL: https://wenzhi.api.qcloud.com/v2/index.php {"code":0,"message":"","codeDesc":"Success","positive":0.048611093312502,"negative":0.95138889551163}
Install
pip install qcloudapi3
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qcloudapi3-0.1.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for qcloudapi3-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4799b3fdcf5d8f8f6dd6d8098b724792da3de441a5e48306c4e7d4989858ca2 |
|
MD5 | a3ff96f6085fe4610b8e831e112612ff |
|
BLAKE2b-256 | 94696a3439b20c99742d2442870acc43b03b39e6e61eba2910c973215474efd9 |