Tool to send notifications
Project description
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
Usage - Help
$ ppnotify --help
usage: ppnotify [--version] [--help] [--debug] [--verbose] [-f SENDER] -t RECIPIENTS [RECIPIENTS ...] [-s SUBJECT] [-H]
Tool to send Slack messages
options:
--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
sender
-t RECIPIENTS [RECIPIENTS ...], --to RECIPIENTS [RECIPIENTS ...]
recipient
-s SUBJECT, --subject SUBJECT
subject
-H, --code send code block
Usage - CLI
$ echo 'The king is dead, long live the king!' \
| ppnotify -Hf 'Jon Snow' \
-t 'arya.stark@winterfell.com' \
-s 'Re: secret message'
Usage - Python module
from ppnotify import Slack
slack = Slack()
status = slack.send(
sender='Jon Snow',
recipients=['arya.stark@winterfell.com'],
subject='Re: secret message',
message='The king is dead, long live the king!',
code=True
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ppnotify-0.0.2.tar.gz.
File metadata
- Download URL: ppnotify-0.0.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9b87ecbaebeb6704f0dfb6b39ae2a0efba47636f0c96ad8c096d95533f98cf
|
|
| MD5 |
32013b1255947e9e9b1b036284781568
|
|
| BLAKE2b-256 |
cb80bba05319f2d8e605be8a19711f40fcd7028906b23ff70cef6a8f64048432
|
Provenance
The following attestation bundles were made for ppnotify-0.0.2.tar.gz:
Publisher:
main.yml on peterpakos/ppnotify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ppnotify-0.0.2.tar.gz -
Subject digest:
7d9b87ecbaebeb6704f0dfb6b39ae2a0efba47636f0c96ad8c096d95533f98cf - Sigstore transparency entry: 853972685
- Sigstore integration time:
-
Permalink:
peterpakos/ppnotify@15f6e070199b5185d198ad23723274500cac1110 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/peterpakos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@15f6e070199b5185d198ad23723274500cac1110 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ppnotify-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ppnotify-0.0.2-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18fcda9b8b4c0cf732568639924561c4493d4cfb5298e420f617e5e2eac24ec4
|
|
| MD5 |
c3da98fa7feb5029175d361cafaf57d2
|
|
| BLAKE2b-256 |
9775347ebb66822bcdd2f9a931c0ed356872d1c5926e08c729dde0422705b052
|
Provenance
The following attestation bundles were made for ppnotify-0.0.2-py3-none-any.whl:
Publisher:
main.yml on peterpakos/ppnotify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ppnotify-0.0.2-py3-none-any.whl -
Subject digest:
18fcda9b8b4c0cf732568639924561c4493d4cfb5298e420f617e5e2eac24ec4 - Sigstore transparency entry: 853972696
- Sigstore integration time:
-
Permalink:
peterpakos/ppnotify@15f6e070199b5185d198ad23723274500cac1110 -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/peterpakos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@15f6e070199b5185d198ad23723274500cac1110 -
Trigger Event:
push
-
Statement type: