Skip to main content

An asyncio wrapper of matrix_client.api

Project description

An asyncio wrapper of matrix_client.api.

This is based on the work in https://github.com/matrix-org/matrix-python-sdk/pull/168

Usage

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())

Installation

pip install matrix_api_async

Requirements

  • matrix_client

  • aiohttp (Could potentially be used with other libraries)

Compatibility

Python 3.5+

Licence

MIT

Authors

matrix_api_async was written by Stuart Mumford.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_api_async-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file matrix_api_async-0.1.0.tar.gz.

File metadata

  • Download URL: matrix_api_async-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for matrix_api_async-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8361fd8ffabce911b2f7a43bfdce1b2d7dad8d9a0ff396401f5951109943bd75
MD5 ba75a50ac9d32da33e54ce7e3ee2149e
BLAKE2b-256 d9f8025476806d395ac8409e36c326d470f6e57a2eb5b7612557589310f7b73f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page