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
Requirement: Python 3.8+.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmc-0.1.2.tar.gz.
File metadata
- Download URL: mmc-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4367f6976fba00445a58d75e6ce481b32b76614162ad1957ffe0302baaeb17a
|
|
| MD5 |
e5000a218f8be5520e59a947b000dab8
|
|
| BLAKE2b-256 |
19dbfa8d2b2028376bdbdeebc4bedffad1f9a7c9f6ba53c602e02af5a7c528fb
|
Provenance
The following attestation bundles were made for mmc-0.1.2.tar.gz:
Publisher:
publish.yml on Bixoto/mmc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmc-0.1.2.tar.gz -
Subject digest:
c4367f6976fba00445a58d75e6ce481b32b76614162ad1957ffe0302baaeb17a - Sigstore transparency entry: 801525051
- Sigstore integration time:
-
Permalink:
Bixoto/mmc@f2f3f188edfc64ac1a3150d5a8de9615065d1bec -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bixoto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f2f3f188edfc64ac1a3150d5a8de9615065d1bec -
Trigger Event:
push
-
Statement type:
File details
Details for the file mmc-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mmc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53eced8fab194e1deed14f114d261afb0b3791629aab4fb3741fde1c96348b5c
|
|
| MD5 |
f744660bc69b6741ee2f8496f163ef52
|
|
| BLAKE2b-256 |
18a261ed1f63387d19398a1cb20004509e4aeaab3f79cf22355bb2fa0e6d47a2
|
Provenance
The following attestation bundles were made for mmc-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Bixoto/mmc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmc-0.1.2-py3-none-any.whl -
Subject digest:
53eced8fab194e1deed14f114d261afb0b3791629aab4fb3741fde1c96348b5c - Sigstore transparency entry: 801525110
- Sigstore integration time:
-
Permalink:
Bixoto/mmc@f2f3f188edfc64ac1a3150d5a8de9615065d1bec -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bixoto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f2f3f188edfc64ac1a3150d5a8de9615065d1bec -
Trigger Event:
push
-
Statement type: