Async wrapper for matrix.org admin API
Project description
Matrix Admin Sdk
Async wrapper for matrix.org admin API
Installation
pip install matrix-admin-sdk
Usage
Documentations here
Quick Start
import asyncio
import httpx
from matrix_admin_sdk import MatrixAdminClient
from matrix_admin_sdk.endpoints.v1 import EditRoomMembership
async def main():
admin_key = "admin_key"
http_client = httpx.AsyncClient()
server_url = "https://matrix.server.com"
admin_client = MatrixAdminClient(http_client, admin_key, server_url)
api = EditRoomMembership(admin_client)
res = await api.join_user_to_room("room_id", "user_id")
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matrix-admin-sdk-0.2.0b0.tar.gz
(29.7 kB
view hashes)
Built Distribution
Close
Hashes for matrix_admin_sdk-0.2.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35422708c73b84865c3c44afa5941106a40af1a578acaa0adf785d07eec2984 |
|
MD5 | 9a3d8932db2f5db1517e2e2d4e68ac00 |
|
BLAKE2b-256 | 0cf12b001ca1c1bbe89068524d612e7c804c50f12389925b584651bc9c650533 |