Skip to main content

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"])

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.3.0.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmc-0.3.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file mmc-0.3.0.tar.gz.

File metadata

  • Download URL: mmc-0.3.0.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for mmc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ee250ecb3c20ee0a524228915d44e10975858250eb7a6ad61a4dfc014e9c4dfd
MD5 87a9b6402fd7f50b4852277aba58699d
BLAKE2b-256 b77c50a971f4d59af9f315f916eee26e52125b4fa4e8c1f0ef8d773b63a3bf79

See more details on using hashes here.

File details

Details for the file mmc-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mmc-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for mmc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef04988bdf6f65e9514cc7868ba7d078ee7d7ec21219519abab2ff18cbb44cbf
MD5 4cc8a1f7f5ad2af93218ca8104a0236b
BLAKE2b-256 954c4af147b6f09d1160c79017c438547aadac40146f5c4817ebc205977e6fe1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page