Skip to main content

Mattermost post message

Project description

mmpost

Post message to mattermost from command line.

Installation

sudo pip3 install mmpost

Configuration

mmpost can be configured using both command line arguments and a configuration file, or a combination of both.

This configuration file can be put in $XDG_CONFIG_HOME/mmpost/config (normally ~/.config/mmpost/config):

[DEFAULT]

# Mattermost server
server = <SERVER>

# Mattermost server
port = 443

# Mattermost token
token = <TOKEN>

# Mattermost team name
team = <TEAM>

# Mattermost channel
channel = <MATTERMOST CHANNEL>

# Mattermost message
message = <MESSAGE TO POST>

# Skip SSL-verify (set to True to skip SSL verification)
no-verify=

Normally you would configure server, token, team (and channel) and only specify --message on command line.

If message is not configured, it will read from stdin. If empty value is passed to stdin, nothing will be posted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmpost-0.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mmpost-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mmpost-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.6.12

File hashes

Hashes for mmpost-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91023a617a065fca84f1e67faf02ad92356d272a65938c4445bf44a38f306c0d
MD5 5a4e8ffa6334b525361e5eb2569329c1
BLAKE2b-256 566b117060710b568a7c8b4027f0557f0c4b57947a64b245a5bb153e40577e80

See more details on using hashes here.

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