Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/aiobearychat
BearyChat 异步 Python SDK
https://github.com/mozillazg/aiobearychat
aiohttp api async asyncio bearychat python python3 rtm sans-io sdk tornado
Last synced: 22 days ago
JSON representation
BearyChat 异步 Python SDK
- Host: GitHub
- URL: https://github.com/mozillazg/aiobearychat
- Owner: mozillazg
- License: mit
- Created: 2017-08-20T06:13:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T03:22:32.000Z (over 7 years ago)
- Last Synced: 2024-10-09T09:55:04.656Z (3 months ago)
- Topics: aiohttp, api, async, asyncio, bearychat, python, python3, rtm, sans-io, sdk, tornado
- Language: Python
- Homepage: https://aiobearychat.readthedocs.org/
- Size: 78.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
===============================
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 `_ 异步 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.6Features
--------* 封装所有的 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