https://github.com/bixoto/mmc
Minimal Mattermost API client
https://github.com/bixoto/mmc
mattermost python-api-client
Last synced: 9 months ago
JSON representation
Minimal Mattermost API client
- Host: GitHub
- URL: https://github.com/bixoto/mmc
- Owner: Bixoto
- License: mit
- Created: 2023-12-05T17:25:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T09:22:26.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T23:14:52.108Z (9 months ago)
- Topics: mattermost, python-api-client
- Language: Python
- Homepage: https://pypi.org/project/mmc/
- Size: 39.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mmc
**mmc** is a **m**inimal **M**attermost **c**lient for Python. It calls the v4 API endpoints and is meant for basic
uses.
## Install
pip install mmc
## Usage
```python
from mmc import Mattermost
m = Mattermost(
"chat.example.com",
access_token="...",
team_id="...",
team_slug="my-team",
)
print("Teams:")
for team in m.get_teams():
print(f"* {team['display_name']}")
print("Users:")
for user in m.get_users():
print(f"* {user['username']}")
for post in m.get_channel_posts(channel_id="..."):
print(post["message"])
```