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
Requirement: Python 3.10+, Mattermost 7.1+.
- For Python 3.8, use version 0.1.2
- For Python 3.9, use version 0.2.0
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']}")
user = m.get_user("user-id")
print(user["username"])
for post in m.get_channel_posts(channel_id="..."):
print(post["message"])
Metadata
Release files for mmc 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mmc-0.3.0.tar.gz | 48.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mmc-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.6 kB
Release files / mmc-0.3.0.tar.gz
| Download URL | mmc-0.3.0.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee250ecb3c20ee0a524228915d44e10975858250eb7a6ad61a4dfc014e9c4dfd
|
|
BLAKE2b-256 checksum How to use checksums |
b77c50a971f4d59af9f315f916eee26e52125b4fa4e8c1f0ef8d773b63a3bf79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mmc-0.3.0-py3-none-any.whl
| Download URL | mmc-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef04988bdf6f65e9514cc7868ba7d078ee7d7ec21219519abab2ff18cbb44cbf
|
|
BLAKE2b-256 checksum How to use checksums |
954c4af147b6f09d1160c79017c438547aadac40146f5c4817ebc205977e6fe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|