ppnotify
Tool to send notifications
PyPI package: ppnotify
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.
Installation
The package is available in PyPI and can be installed using pip:
$ pip install --user ppnotify
$ ppnotify --help
Once installed, a command line tool ppnotify will be available in your system's PATH.
Configuration
By default, the tool reads its configuration from ~/.config/ppnotify file (the
location can be overridden by setting environment variable XDG_CONFIG_HOME).
The config file should look like this:
[default]
slack_key = xxx
email_domain = example.com
[teams]
webhook_url = https://url.example.com
channel1 = team_id1,channel_id1
channel2 = https://dedicated-webhook-url.example.com
For Teams channels, the value can be either a team_id,channel_id pair (which uses the default webhook_url) or a
dedicated https:// webhook URL used directly for that channel.
Usage - Help
$ ppnotify --help
usage: ppnotify [--version] [--help] [--debug] [--verbose] [-m {slack,teams}] [-f SENDER] -t RECIPIENTS [RECIPIENTS ...] [-s SUBJECT] [-H]
Tool to send notifications
options:
--version show program's version number and exit
--help show this help message and exit
--debug debugging mode
--verbose verbose debugging mode
-m, --method {slack,teams}
notification method (default: teams)
-f, --from SENDER sender
-t, --to RECIPIENTS [RECIPIENTS ...]
recipient
-s, --subject SUBJECT
subject
-H, --code send code block
Usage - CLI
Send a Teams message (default method):
$ echo 'The king is dead, long live the king!' \
| ppnotify -Hf 'Jon Snow' \
-t 'game-of-thrones-channel' \
-s 'Re: secret message'
Send a Slack message:
$ echo 'The king is dead, long live the king!' \
| ppnotify -m slack -Hf 'Jon Snow' \
-t 'game-of-thrones-channel' \
-s 'Re: secret message'
Usage - Python module
Send a Teams message:
from ppnotify import Teams
teams = Teams('game-of-thrones-channel')
status = teams.send(
sender='Jon Snow',
subject='Re: secret message',
message='The king is dead, long live the king!',
code=True
)
Send a Slack message:
from ppnotify import Slack
slack = Slack()
status = slack.send(
sender='Jon Snow',
recipients=['game-of-thrones-channel'],
subject='Re: secret message',
message='The king is dead, long live the king!',
code=True
)
Metadata
Release files for ppnotify 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ppnotify-0.4.0.tar.gz | 19.2 kB | With provenance | Details for ppnotify-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ppnotify-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for ppnotify-0.4.0-py3-none-any.whl |
Total release size: 39.4 kB
Release files / ppnotify-0.4.0.tar.gz
| Download URL | ppnotify-0.4.0.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb7c2953f744f00de7c1ed1c7b2cd31e346af175b86cb2fe47e4a5aa023d1f7c
|
|
BLAKE2b-256 checksum How to use checksums |
a14bfa87afbded18f217e340a22a69a79d9cb2869e93555dd218604bc35429e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 18, 2026.
Transparency logRelease files / ppnotify-0.4.0-py3-none-any.whl
| Download URL | ppnotify-0.4.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0147959a638fe4d8f3a78b3566fef38c3275fe488a5557603a6708a34fcd15c
|
|
BLAKE2b-256 checksum How to use checksums |
f04972339094fad550b0fc4f6ffda5b34f8fd5f80ab37c966e577079b7ada37b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 18, 2026.
Transparency logSecurity for ppnotify 0.4.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ppnotify-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 18, 2026.
Transparency logA 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.