Skip to main content

BearyChat 异步 Python SDK

Project description

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

BearyChat 异步 Python SDK

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


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)

Uploaded Source

Built Distribution

aiobearychat-0.2.0-py2.py3-none-any.whl (25.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aiobearychat-0.2.0.tar.gz.

File metadata

File hashes

Hashes for aiobearychat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7ec1a6d1e34fcba2597dd7c5ada415e8dbceda08b740367a5c73c99ef79c2c26
MD5 651d514f3d039ce9f0d22dc6f671c5c0
BLAKE2b-256 3010141da89751ff6e9ef27b4d03bc7d8a0894c04d5f97e0acbda5e61ff6292e

See more details on using hashes here.

File details

Details for the file aiobearychat-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aiobearychat-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc2d45d0470c284eca2b895572e673d55107641dafa3627304ad3d6181d1d8ec
MD5 e52a96a8e3cbf0a5ee06cf5746f9e102
BLAKE2b-256 d897d19cdbc12071ca74af2834248db1dc4ede21e8aaba336e480701cf588122

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page