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.
Metadata
Release files for aiobearychat 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiobearychat-0.2.0.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiobearychat-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 40.2 kB
Release files / aiobearychat-0.2.0.tar.gz
| Download URL | aiobearychat-0.2.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ec1a6d1e34fcba2597dd7c5ada415e8dbceda08b740367a5c73c99ef79c2c26
|
|
BLAKE2b-256 checksum How to use checksums |
3010141da89751ff6e9ef27b4d03bc7d8a0894c04d5f97e0acbda5e61ff6292e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aiobearychat-0.2.0-py2.py3-none-any.whl
| Download URL | aiobearychat-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dc2d45d0470c284eca2b895572e673d55107641dafa3627304ad3d6181d1d8ec
|
|
BLAKE2b-256 checksum How to use checksums |
d897d19cdbc12071ca74af2834248db1dc4ede21e8aaba336e480701cf588122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |