BearyChat 异步 Python SDK
Free software: MIT license
Documentation: https://aiobearychat.readthedocs.org
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.
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiobearychat-0.2.0.tar.gz.
File metadata
- Download URL: aiobearychat-0.2.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ec1a6d1e34fcba2597dd7c5ada415e8dbceda08b740367a5c73c99ef79c2c26
|
|
| MD5 |
651d514f3d039ce9f0d22dc6f671c5c0
|
|
| BLAKE2b-256 |
3010141da89751ff6e9ef27b4d03bc7d8a0894c04d5f97e0acbda5e61ff6292e
|
File details
Details for the file aiobearychat-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: aiobearychat-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc2d45d0470c284eca2b895572e673d55107641dafa3627304ad3d6181d1d8ec
|
|
| MD5 |
e52a96a8e3cbf0a5ee06cf5746f9e102
|
|
| BLAKE2b-256 |
d897d19cdbc12071ca74af2834248db1dc4ede21e8aaba336e480701cf588122
|