aiobearychat

https://img.shields.io/pypi/v/aiobearychat.svg https://img.shields.io/travis/mozillazg/aiobearychat.svg https://img.shields.io/coveralls/mozillazg/aiobearychat/master.svg Documentation Status Join the chat at https://gitter.im/mozillazg/aiobearychat

An async BearyChat API library for Python

Features

  • 异步 I/O BearyChat Python SDK
  • 支持不同的异步 I/O http 客户端模块(aiohttp, tornado, ...)
  • 封装所有 OpenAPI

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())

Credits

This package was created with Cookiecutter and the mozillazg/cookiecutter-pypackage project template.