Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmitriiweb/matrix-admin-sdk
Async wrapper for matrix.org admin API
https://github.com/dmitriiweb/matrix-admin-sdk
Last synced: 1 day ago
JSON representation
Async wrapper for matrix.org admin API
- Host: GitHub
- URL: https://github.com/dmitriiweb/matrix-admin-sdk
- Owner: dmitriiweb
- License: mit
- Created: 2022-04-03T15:42:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-01T12:01:56.000Z (over 2 years ago)
- Last Synced: 2024-12-12T18:51:57.332Z (about 1 month ago)
- Language: Python
- Size: 779 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Matrix Admin Sdk
[![PyPI version](https://badge.fury.io/py/matrix-admin-sdk.svg)](https://badge.fury.io/py/matrix-admin-sdk)
Async wrapper for matrix.org admin API
## Installation
```shell
pip install matrix-admin-sdk
```## Usage
Documentations [here](https://dmitriiweb.github.io/matrix-admin-sdk/)### Quick Start
```python
import asyncioimport httpx
from matrix_admin_sdk import MatrixAdminClient
from matrix_admin_sdk.endpoints.v1 import EditRoomMembershipasync 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())
```