Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

prplecake/py_pushover_simple

Repository files navigation

PyPI version CodeFactor

py_pushover_simple

This is a very simple python pushover wrapper for sending quick messages from command line scripts.

Installation

  1. Obtain the code:

    Download from PyPi:

    pip install py-pushover-simple
  2. 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

Additional documentation may be found in the wiki.

This project is licensed under the terms of the MIT license.