A wrapper for sending push notifications with Pushover
Project description
py_pushover_simple
This is a very simple python pushover wrapper for sending quick messages from command line scripts.
Installation
-
Obtain the code:
Download from PyPi (recommended):
python3 -m pip install py-pushover-simple
or, clone the repository:
git clone https://git.sr.ht/~mjorgensen/py_pushover_simple
-
Add it to your script:
from py_pushover_simple import pushover def send_message(message): p = pushover.Pushover() p.user = 'user key' p.token = 'app token' p.sendMessage(message)
For a working demo, see ippush.py from the ip_push project.
Usage
py_pushover_simple
can be used on the command line:
For a full list of arguments:
$ python -m py_pushover_simple.pushover -h
usage: pushover.py [-h] [-u <string>] [-t <string>]
optional arguments:
-h, --help show this help message and exit
-u <string> pushover user token
-t <string> pushover app token
Resources
Discussion and patches are welcome at my public inbox:
~mjorgensen/public-inbox@lists.sr.ht. Please use --send-prefix PATCH py_pushover_simple
for clarity when sending patches.
Bugs, issues, and tasks are in the tracker: ~mjorgensen/py_pushover_simple
This project is licensed under the terms of the MIT license.
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
Hashes for py_pushover_simple-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014592246563516c9b940b063b4c258e3b83a11dd9df531e08c689c142335236 |
|
MD5 | 194299476606a08375b1c4eb2c43b33f |
|
BLAKE2b-256 | 3d7a1a52d208b36f666795022f59df4941a3995c03edc63614e8193ac21c3253 |