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_async-0.1.0.tar.gz的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 8361fd8ffabce911b2f7a43bfdce1b2d7dad8d9a0ff396401f5951109943bd75 |
|
| MD5 | ba75a50ac9d32da33e54ce7e3ee2149e |
|
| BLAKE2b-256 | d9f8025476806d395ac8409e36c326d470f6e57a2eb5b7612557589310f7b73f |