BearyChat 异步 Python SDK
Project description
BearyChat 异步 Python SDK
- Free software: MIT license
- Documentation: https://aiobearychat.readthedocs.org
- GitHub: https://github.com/mozillazg/aiobearychat
- PyPI: https://pypi.python.org/pypi/aiobearychat
- Python version: 3.5, 3.6
Features
- 封装所有的 OpenAPI
- 封装所有的 RTM HTTP API
- 支持不同的异步 HTTP 请求模块(aiohttp, tornado, …)
Installation
At the command line:
$ pip install aiobearychat[aiohttp]
Usage
OpenAPI
import aiohttp from aiobearychat.openapi.aiohttp import OpenAPI async def main(token): async with aiohttp.ClientSession() as session: api = OpenAPI(session, token=token) response = await api.user.list() print(response.json())
RTM HTTP API
import aiohttp from aiobearychat.rtm.aiohttp import RtmAPI async def main(token): async with aiohttp.ClientSession() as session: api = RtmAPI(session, token=token) response = await api.start() pprint(response.json())
Credits
This package was created with Cookiecutter and the mozillazg/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiobearychat-0.2.0.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for aiobearychat-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc2d45d0470c284eca2b895572e673d55107641dafa3627304ad3d6181d1d8ec |
|
MD5 | e52a96a8e3cbf0a5ee06cf5746f9e102 |
|
BLAKE2-256 | d897d19cdbc12071ca74af2834248db1dc4ede21e8aaba336e480701cf588122 |