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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file matrix-admin-sdk-0.2.0b0.tar.gz.

File metadata

  • Download URL: matrix-admin-sdk-0.2.0b0.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.32-1-MANJARO

File hashes

Hashes for matrix-admin-sdk-0.2.0b0.tar.gz
Algorithm Hash digest
SHA256 e4a296b77f4fbaba1da07eb3dcb092d13a0b045eb4f87537af47bb7d9178f718
MD5 831d4d3e8ec354a306ca1d05b9ca97f0
BLAKE2b-256 7f29ef3b925d188f33240d8ce7ad6b73721319180e5d919886d22435a409565a

See more details on using hashes here.

File details

Details for the file matrix_admin_sdk-0.2.0b0-py3-none-any.whl.

File metadata

  • Download URL: matrix_admin_sdk-0.2.0b0-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.32-1-MANJARO

File hashes

Hashes for matrix_admin_sdk-0.2.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b35422708c73b84865c3c44afa5941106a40af1a578acaa0adf785d07eec2984
MD5 9a3d8932db2f5db1517e2e2d4e68ac00
BLAKE2b-256 0cf12b001ca1c1bbe89068524d612e7c804c50f12389925b584651bc9c650533

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