Metadata-Version: 2.4
Name: mmc
Version: 0.1.2
Summary: Minimal Mattermost API client
License: MIT
License-File: LICENSE
Author: Baptiste Fontaine
Author-email: baptiste@bixoto.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: api-session (>=1.4.3,<2.0.0)
Project-URL: Homepage, https://github.com/Bixoto/mmc
Description-Content-Type: text/markdown

# mmc

**mmc** is a **m**inimal **M**attermost **c**lient for Python. It calls the v4 API endpoints and is meant for basic
uses.

## Install

    pip install mmc

Requirement: Python 3.8+.

## Usage

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

```

