A simple, developer-friendly library to create Matrix bots.
http://matrixpy.codesociety.xyz/ ↗// readme
Matrix.py is a lightweight and intuitive Python library to build bots on the Matrix protocol. It provides a clean, decorator-based API similar to popular event-driven frameworks, allowing developers to focus on behavior rather than boilerplate.
- Minimal setup — install and have a working bot running in minutes
- Event-driven — async/await API reacting to any Matrix room event
- Command system — decorator-based commands with automatic argument parsing
- Extensions — split your bot into modules as it grows
Quickstart
Requirements: Python 3.10+
pip install matrix-python
Using a virtual environment is strongly recommended:
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install matrix-python
Create a config.yml:
USERNAME: "@yourbot:matrix.org"
PASSWORD: "your_password"
from…