mattermostdriver
A Python Mattermost Driver
What it is and what it does
Mattermostdriver is a Python client for the Mattermost messaging platform's REST API (v4). It wraps HTTP requests and WebSocket connections to let you programmatically interact with Mattermost servers—creating channels, posting messages, uploading files, managing users and teams, and listening to real-time events. The library handles authentication via login credentials, personal access tokens, or custom auth headers, and provides a straightforward object-oriented interface where API endpoints map directly to driver methods (e.g., `driver.users.get_user()`, `driver.channels.create_channel()`).
The package depends on websockets and requests for its core functionality. It supports Python 3.5 through 3.9 and is marked as Production/Stable in its classifiers. However, the repository is now archived and abandoned—the last release was in January 2022, with no commits or maintenance since then. This means the package will not receive updates for new Mattermost API changes, security patches, or compatibility fixes for newer Python versions.
Use it for:
- Build bots or automation scripts that monitor Mattermost channels and respond to messages or events in real time
- Integrate Mattermost with external systems by programmatically creating posts, channels, or managing team membership
- Bulk upload files to Mattermost channels or automate file management workflows
- Develop custom Mattermost clients or dashboards that query user, team, or channel data via the API
- Create webhooks or event handlers that react to Mattermost activities without manual intervention
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for the Mattermost API (v4) that provides programmatic access to users, teams, channels, posts, files, and webhooks via HTTP and WebSocket connections.
No, not recommended for new projects. While the package is stable and has low install friction, it is archived and abandoned with no maintenance since January 2022. Any future changes to the Mattermost API, security vulnerabilities, or Python compatibility issues will go unaddressed. Use only if you are maintaining legacy code already tied to this library and cannot migrate to an actively maintained alternative.
Install
mattermostdriver on PyPI
pip
pip install mattermostdriveruv
uv add mattermostdriverpoetry
poetry add mattermostdriverInstalling mattermostdriver
Before you install
Low install friction with only two runtime dependencies (websockets and requests). However, the package is archived and abandoned—last release was 2022-01-21, over 1666 days ago. No active maintenance or security updates are being provided.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions, though you must include the license notice.
Quickstart
pip install mattermostdriver
from mattermostdriver import Driver
driver = Driver({
'url': 'mattermost.server.com',
'login_id': 'user.name',
'password': 'password'
})
driver.login()
user = driver.users.get_user_by_username('another.name')
Requires Python 3.5 or later. Mattermost server must be accessible at the configured URL with valid credentials or a personal access token.
Verify before relying
- Whether the package remains compatible with current Mattermost server versions given the lack of recent updates
- Whether websocket keepalive and reconnection features work reliably in production environments
- Current status of the official Mattermost API—whether v4 is still the current version or if newer versions exist
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — websockets, requests |
| Maintenance | abandoned — 1,666 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 137,070/month — #11,377 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mattermostdriver-7.3.2-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
mattermostwrapperA Python wrapper for the Mattermost v4 API that…
permissive · top 15,000 on PyPI
apiclientA lightweight framework for building HTTP API…
permissive · top 15,000 on PyPI
lakefs-sdkProvides a Python client library for the lakeFS…
permissive · top 15,000 on PyPI
slackclientProvides Python interfaces to Slack's Web API…
permissive · top 5,000 on PyPI
matter-ble-proxyA Python client library that bridges BLE…
permissive · top 15,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
signalrcoreA Python client library for connecting to…
unclear · top 15,000 on PyPI
httpx-wsAdds WebSocket support to HTTPX, enabling sync…
permissive · top 5,000 on PyPI
python-youtubeA Python wrapper for the YouTube Data API V3…
permissive · top 15,000 on PyPI