All Projects → mtorromeo → Mattersend

mtorromeo / Mattersend

Licence: other
Library and CLI utility to send messages to mattermost's incoming webhooks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mattersend

Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (+64.71%)
Mutual labels:  api, cli, webhooks
Ponzu
Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
Stars: ✭ 5,373 (+7801.47%)
Mutual labels:  api, cli
Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (+632.35%)
Mutual labels:  api, cli
Get File
CLI and API to get a single file from Github repository.
Stars: ✭ 9 (-86.76%)
Mutual labels:  api, cli
Memento
Memento is a development-only tool that caches HTTP calls once they have been executed.
Stars: ✭ 380 (+458.82%)
Mutual labels:  api, cli
Ola
The Open Lighting Architecture - The Travel Adaptor for the Lighting Industry
Stars: ✭ 424 (+523.53%)
Mutual labels:  api, cli
Github Funding Yml Updater
Update multiple repositories's `.github/FUNDING.yml` via GitHub API
Stars: ✭ 17 (-75%)
Mutual labels:  api, cli
Contentful Cli
The official Contentful command line interface. Use Contentful features straight from the command line!
Stars: ✭ 200 (+194.12%)
Mutual labels:  api, cli
Nexrender
📹 Data-driven render automation for After Effects
Stars: ✭ 946 (+1291.18%)
Mutual labels:  api, cli
Oas Generator
NodeJS RESTful APIs scaffolding based OpenAPI 3.x specs using oas-tools and express.
Stars: ✭ 32 (-52.94%)
Mutual labels:  api, cli
Cli
GraphQL back-end framework with first-class Typescript support
Stars: ✭ 37 (-45.59%)
Mutual labels:  api, cli
Syno
Simple Node.js wrapper and CLI for Synology DSM REST API 5.x and 6.x.
Stars: ✭ 255 (+275%)
Mutual labels:  api, cli
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+77917.65%)
Mutual labels:  api, cli
Upash
🔒Unified API for password hashing algorithms
Stars: ✭ 484 (+611.76%)
Mutual labels:  api, cli
Twitch
Interact with Twitch's API, chat, PubSub and subscribe to WebHooks.
Stars: ✭ 237 (+248.53%)
Mutual labels:  api, webhooks
Exiftool
ExifTool meta information reader/writer
Stars: ✭ 832 (+1123.53%)
Mutual labels:  api, cli
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+12148.53%)
Mutual labels:  api, cli
Emuto
manipulate JSON files
Stars: ✭ 180 (+164.71%)
Mutual labels:  api, cli
Autoserver
Create a full-featured REST/GraphQL API from a configuration file
Stars: ✭ 188 (+176.47%)
Mutual labels:  api, cli
Horrible Downloader
horriblesubs.info python API and CLI
Stars: ✭ 28 (-58.82%)
Mutual labels:  api, cli

mattersend |build-status| |cover-status|

CLI tool to send messages to the Incoming webhook of mattermost (http://www.mattermost.org/).

Help

::

usage: mattersend [-h] [-V] [-C CONFIG] [-s SECTION] [-c CHANNEL] [-U URL]
                  [-u USERNAME] [-i ICON] [-t [DIALECT] | -y SYNTAX] [-n]
                  [-f FILE]

Sends messages to mattermost's incoming webhooks via CLI

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -C CONFIG, --config CONFIG
                        Use a different configuration file
  -s SECTION, --section SECTION
                        Configuration file section
  -c CHANNEL, --channel CHANNEL
                        Send to this channel or @username
  -U URL, --url URL     Mattermost webhook URL
  -u USERNAME, --username USERNAME
                        Username
  -i ICON, --icon ICON  Icon
  -t [DIALECT], --tabular [DIALECT]
                        Parse input as CSV and format it as a table (DIALECT
                        can be one of sniff, excel, excel-tab, unix)
  -y SYNTAX, --syntax SYNTAX
  -n, --dry-run, --just-print
                        Don't send, just print the payload
  -f FILE, --file FILE  Read content from FILE. If - reads from standard input
                        (DEFAULT: -)

Configuration file

The only required option to start sending messages to mattermost is the webhook url. You can either set this in a configurations file (globally in /etc/mattersend.conf or locally in $HOME/.mattersend.conf) or specify it on the CLI with the --url argument.

You can have multiple sections to override DEFAULT settings and later select them from the CLI with the --section argument.

This is an example of a configuration file for mattersend::

[DEFAULT]
url = https://mattermost.example.com/hooks/XXXXXXXXXXXXXXXXXXXXXXX
icon = 👻
username = This is a bot
channel = @myself

[angrybot]
icon = 😠
username = AngryBot

Example usage

::

echo "Hello world!" | mattersend -U https://mattermost.example.com/hooks/XXX

# you can omit -U with mattersend.conf
echo "Hello world!" | mattersend

# send file content
mattersend -f todo.txt

# table data
echo -e "ABC;DEF;GHI\nfoo;bar;baz" | mattersend -t

LICENSE

Copyright (c) 2016 Massimiliano Torromeo

mattersend is free software released under the terms of the BSD license.

See the LICENSE file provided with the source distribution for full details.

Contacts

.. |build-status| image:: https://travis-ci.org/mtorromeo/mattersend.svg?branch=master :target: https://travis-ci.org/mtorromeo/mattersend :alt: Build status .. |cover-status| image:: https://coveralls.io/repos/github/mtorromeo/mattersend/badge.svg?branch=master :target: https://coveralls.io/github/mtorromeo/mattersend?branch=master

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].