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.9+.

For Python 3.8, use version 0.1.2.

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.2.0.tar.gz (63.1 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.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mmc-0.2.0.tar.gz
  • Upload date:
  • Size: 63.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 a9e160fc1c5afd1d330b07f67efef28ee3f81e5fba8157aba409127c1db7ae87
MD5 6617e17bb2b2281973d16b242298de6f
BLAKE2b-256 a8887d14e741ac125bbe2647cfbef109626a8601e8777d360eb33711d0957398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mmc-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c22f63e93b832c443dc7bcb2c0d3bb06e64d8c42e66d515741dd2c766c43a5
MD5 4a2fb9d8ceb34dbf4f1f4dabe874da4f
BLAKE2b-256 b7dca3c5e42671f68d54507951cfa1fe21d64e9edd7014f46e93a3b6e0cfcda5

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