Skip to main content
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.

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)

Source distribution for aiobearychat 0.2.0
File Size Uploaded
aiobearychat-0.2.0.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiobearychat 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page