Current collected state Current
Observed since 21 Oct, 11:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
BearyChat 异步 Python SDK
===============================
aiobearychat
===============================
.. image:: https://img.shields.io/pypi/v/aiobearychat.svg
:target: https://pypi.python.org/pypi/aiobearychat
.. image:: https://img.shields.io/travis/mozillazg/aiobearychat.svg
:target: https://travis-ci.org/mozillazg/aiobearychat
.. image:: https://img.shields.io/coveralls/mozillazg/aiobearychat/master.svg
:target: https://coveralls.io/r/mozillazg/aiobearychat
.. image:: https://readthedocs.org/projects/aiobearychat/badge/?version=latest
:target: https://readthedocs.org/projects/aiobearychat/?badge=latest
:alt: Documentation Status
.. image:: https://badges.gitter.im/mozillazg/aiobearychat.svg
:alt: Join the chat at https://gitter.im/mozillazg/aiobearychat
:target: https://gitter.im/mozillazg/aiobearychat
`BearyChat <https://bearychat.com/>`_ 异步 Python SDK
* Free software: MIT license
* Documentation: https://aiobearychat.readthedocs.org
* GitHub: https://github.com/mozillazg/aiobearychat
* PyPI: https://pypi.python.org/pypi/aiobearychat
* 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
~~~~~~~
.. code-block:: python
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
~~~~~~~~~~~~
.. code-block:: python
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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`mozillazg/cookiecutter-pypackage`: https://github.com/mozillazg/cookiecutter-pypackage
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 27 Aug 2017 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:176623ec44069d640cb02a36623be80f2df08adc7b4b02b51497f1668ebdc11b