Push notifications straight to your phone using multiple services
notify-push is a CLI tool to push notifications straight to your phone.
The usual sysadmin method is to send alerts via email but there are tons of services out there with mobile apps that allow us to send push notifications, why not use those for faster and cleaners alerts?
Simply use pip to install it system-wide:
$ sudo pip install git+https://github.com/fopina/notify-push/
Or only for your user
$ pip install --user git+https://github.com/fopina/notify-push/
$ notify-push -h usage: notify-push [OPTIONS] message... Push notifications straight to your phone using multiple services positional arguments: message message optional arguments: -s SERVICE, --service SERVICE use only this service --list-services -c CONFIG, --config CONFIG use this configuration file instead of ~/.notifypush --version show program's version number and exit
Currently supported services are:
$ notify-push --list-services notifcasterbot pushitbot
An example of configuration file ~/.notifypush:
[pushitbot] token = 355aac1b7f0efe055b3f2f663cae16dd
Pushing messages is now as simple as:
$ notify-push hello world Pushed
Or using stdin (useful for shell piping):
$ notify-push Press ctrl-D when done hello world Pushed $ echo hello world | notify-push Press ctrl-D when done Pushed
You can also use it easily from other python scripts:
>>> import notifypush >>> print notifypush.push('hello world') True
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size notify-push-0.0.3.tar.gz (4.4 kB)||File type Source||Python version None||Upload date||Hashes View|