Skip to main content

mattermost-notify

Send notifications using a Bot account from your applications to Mattermost. Simple, fast, easy to set up. No fuzz, just works...

Made with Python code style - black Read the Docs Mattermost Mattermost-API

Installation

First make sure to set up a Bot account on your Mattermost Server with the name notify. Follow the Documentation to learn how.

If you have your notifyBot account set up correctly and you have got it's access token you can install the client package using:

# (yep it's in reverse since another project already used the name on PyPi 😅)
pip install notify-mattermost

Then set up the connection using:

# follow the dialog...
mattermost-notify setup

Now you can test your connection by sending a dummy message to your own user account by doing:

mattermost-notify send "my first message" --user your-username

If you set up everything correctly you should have received a message at this point!

Quick Example from Python

The Python API is very straightforward to use. A quick example (after having set up everything at installation) would look like this:

import mattermost_notify as notify

# initialze the connection
notify.wakeup()

# send a message to a channel
notify.notify("This is a test message", channel_name="some_channel")

# you can also upload files in this way
notify.notify("My latest log file", user="your_username", files=["my_pipeline/log.txt"])

Metadata

Release files for notify-mattermost 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for notify-mattermost 0.1.3
File Interpreter ABI Platform Actions
notify_mattermost-0.1.3-py3-none-any.whl Python 3 none any Details for notify_mattermost-0.1.3-py3-none-any.whl

Release files / notify_mattermost-0.1.3-py3-none-any.whl

Download URL notify_mattermost-0.1.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9acd12a93aadd1caf0126acb583113106811ff06065a298095ba89e461127813
BLAKE2b-256 checksum
How to use checksums
e20086988ebac2be9dc2fa96b2fb311f488c420a6efbfe1c8b7a9a0bab405b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for notify-mattermost 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page