跳转到主要内容

matrix_client.api的asyncio包装器

项目描述

matrix_client.api的asyncio包装器。

这是基于https://github.com/matrix-org/matrix-python-sdk/pull/168的工作。

用法

import aiohttp
from matrix_api_async import AsyncHTTPAPI

  async def main():
      async with aiohttp.ClientSession() as session:
          mapi = AsyncHTTPAPI("http://matrix.org", session)
          resp = await mapi.get_room_id("#matrix:matrix.org")
          print(resp)


  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())

安装

pip install matrix_api_async

需求

  • matrix_client

  • aiohttp (可能与其他库一起使用)

兼容性

Python 3.5+

许可

MIT

作者

matrix_api_asyncStuart Mumford编写。

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

matrix_api_async-0.1.0.tar.gz (3.8 kB 查看哈希值)

上传时间:

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面