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
- 封装所有的 OpenAPI
- 封装所有的 RTM HTTP API
- 支持不同的异步 HTTP 请求模块(aiohttp, tornado, ...)
At the command line:
$ pip install aiobearychat[aiohttp]
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())
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())
This package was created with Cookiecutter and the mozillazg/cookiecutter-pypackage project template.