Metadata-Version: 2.4
Name: mmc
Version: 0.2.0
Summary: Minimal Mattermost API client
Project-URL: Homepage, https://github.com/Bixoto/mmc
Author-email: Baptiste Fontaine <baptiste@bixoto.com>
License-Expression: MIT
License-File: LICENSE
Requires-Python: <4,>=3.9
Requires-Dist: api-session<2,>=1.5.1
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.9+.

For Python 3.8, use version 0.1.2.

## 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']}")

user = m.get_user("user-id")
print(user["username"])

for post in m.get_channel_posts(channel_id="..."):
    print(post["message"])

```
