Skip to main content

Async wrapper for matrix.org admin API

Project description

Matrix Admin Sdk

PyPI version

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


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)

Uploaded Source

Built Distribution

matrix_admin_sdk-0.2.0b0-py3-none-any.whl (49.1 kB view hashes)

Uploaded Python 3

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