Skip to main content

Tool to send messages via Slack

Project description


Tool to send messages via Slack

PyPI package: ppslack

If you spot any problems or have any improvement ideas then feel free to open an issue and I will be glad to look into it for you.


A recommended way of installing the tool is pip install.

Once installed, a command line tool ppslack should be available in your system's PATH.

pip install

The tool is available in PyPI and can be installed using pip:

$ pip install --user ppslack
$ ppslack --help


By default, the tool reads its configuration from ~/.config/ppslack file (the location can be overridden by setting environment variable XDG_CONFIG_HOME).

The config file should look like this:


Usage - Help

$ ppslack --help
usage: ppslack [--version] [--help] [--debug] [--verbose] [-f SENDER] -t RECIPIENTS [RECIPIENTS ...]
               [-s SUBJECT] [-H]

Tool to send messages via Slack

optional arguments:
  --version             show program's version number and exit
  --help                show this help message and exit
  --debug               debugging mode
  --verbose             verbose debugging mode
  -f SENDER, --from SENDER
  -s SUBJECT, --subject SUBJECT
  -H, --code            send code block

Usage - CLI

$ echo 'The king is dead, long live the king!' \
  | ppslack -Hf 'Jon Snow' \
  -t '' \
  -s 'Re: secret message'

Usage - Python module

from ppslack import Slack

slack = Slack()

status = slack.send(
    sender='Jon Snow',
    subject='Re: secret message',
    message='The king is dead, long live the king!',

Project details

Release history Release notifications

This version


Download files

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

Files for ppslack, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ppslack-1.0.0-py2.py3-none-any.whl (17.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size ppslack-1.0.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page