Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

BearyChat 异步 Python SDK

Project description

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


Release history Release notifications

This version
History Node

0.2.0

History Node

0.1.0

History Node

0.1.0.dev1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aiobearychat-0.2.0-py2.py3-none-any.whl (25.9 kB) Copy SHA256 hash SHA256 Wheel 3.6 Aug 27, 2017
aiobearychat-0.2.0.tar.gz (14.3 kB) Copy SHA256 hash SHA256 Source None Aug 27, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page