Skip to main content

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


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

Uploaded Python 3

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

Hashes for mmc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c4367f6976fba00445a58d75e6ce481b32b76614162ad1957ffe0302baaeb17a
MD5 e5000a218f8be5520e59a947b000dab8
BLAKE2b-256 19dbfa8d2b2028376bdbdeebc4bedffad1f9a7c9f6ba53c602e02af5a7c528fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmc-0.1.2.tar.gz:

Publisher: publish.yml on Bixoto/mmc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mmc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53eced8fab194e1deed14f114d261afb0b3791629aab4fb3741fde1c96348b5c
MD5 f744660bc69b6741ee2f8496f163ef52
BLAKE2b-256 18a261ed1f63387d19398a1cb20004509e4aeaab3f79cf22355bb2fa0e6d47a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmc-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Bixoto/mmc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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