Skip to main content

Tool to send Slack messages

Project description


Tool to send Slack messages

PyPI package: ppslack

Feel free to open a GitHub issue if you spot a problem or have an improvement idea. I will be happy to look into it for you.


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

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

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


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] [-S] [-H]

Tool to send Slack messages

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
  -S, --slack           Slack message (keeping for backward compatibility)
  -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

Download files

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

Source Distribution

ppslack-3.2.6.tar.gz (16.1 kB view hashes)

Uploaded source

Built Distribution

ppslack-3.2.6-py3-none-any.whl (17.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page