Minimal Mattermost API client
Project description
mmc
mmc is a minimal Mattermost client for Python. It calls the v4 API endpoints and is meant for basic uses.
Install
pip install mmc
Usage
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"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mmc-0.1.1.tar.gz
(3.1 kB
view details)
Built Distribution
mmc-0.1.1-py3-none-any.whl
(3.7 kB
view details)
File details
Details for the file mmc-0.1.1.tar.gz
.
File metadata
- Download URL: mmc-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8874ed502acc083c9a69e64f049bfea7ec4ff175809491083f27b2cf065001a3 |
|
MD5 | 6f2c09f86b71f81787e28afc7ac70a5b |
|
BLAKE2b-256 | ecdab5675a50aa25ab81df0c0a40c0aa8363fbd479c48d3b644c91d3a874ae15 |
File details
Details for the file mmc-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mmc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9cabec81f1e5e666067d0e2bf12d47e619d9ff2663579245537f4238c3c9af |
|
MD5 | cd6e104ab4f24004d93d715cefcc0569 |
|
BLAKE2b-256 | 2ca1f8dbabcd331ece9e9e17dcc054465e2ee377b340ef7cf0b21dc84bd04998 |