Skip to main content

A wrapper for sending push notifications with Pushover

Project description

py_pushover_simple

PyPI version

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

Installation

  1. Obtain the code:

    Download from PyPi (recommended):

    python3 -m pip install py-pushover-simple
    

    or, clone the repository:

    git clone https://github.com/prplecake/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_pushover_simple-0.5.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

py_pushover_simple-0.5.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file py_pushover_simple-0.5.0.tar.gz.

File metadata

  • Download URL: py_pushover_simple-0.5.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for py_pushover_simple-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fc808a0c7ea84bacfdc2e6d7a7031a23b58001ae3615cc92d5b5b058d8932f55
MD5 a7f0950b0fb71e7e074f0e0babdab856
BLAKE2b-256 a84baff2b93bb38dcded839b68604fb6314cc61057458578da6a7f50cbd80325

See more details on using hashes here.

File details

Details for the file py_pushover_simple-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_pushover_simple-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e95704e2182a214fc8b0b0740986f31fd543f48c6e462a0c08bf65da8803da43
MD5 6cf5cc289a5b4cbd72cba0fc6f2c1604
BLAKE2b-256 5386666a6c40de785ef2fb654f7a6693e36eb579f7a56c14ffa8a034f9d48224

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page