A client package for the Pushover API
Project description
py-pushover-client
Python package to send notifications to devices using the Pushover Message API.
Pre-Requisites
Sign up to https://pushover.net and generate a User Key and an API Token.
Usage
-
Install the package from PyPi:
pip install py-pushover-client
-
Add it to your scripts using your own API Token and User Key:
The following code snippet is instructional only! You should not hardcode your API Token and User Key as string literals, instead you should consider more secure options such as environment variables.
from py_pushover_client import PushoverAPIClient pushover = PushoverAPIClient( api_token="api_token", user_key="user_key", ) pushover.send(title="Test", message="This is a test message")
-
Optionally, you can change the notification sound. This must be done before calling the
PushoverAPIClient.send()method in order for the sound to be processed.A list of acceptable sound options can be found at https://pushover.net/api#sounds
pushover.set_sound(sound="bugle") pushover.send(title="Bugle Baby!", message="Stuff happened.")
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 py_pushover_client-1.0.0.dev2.tar.gz.
File metadata
- Download URL: py_pushover_client-1.0.0.dev2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc490f4d988da4377b142e00f567256ad423c1b98a0d622bddec0866c813ee27
|
|
| MD5 |
85be710932f35bd8346e4f9ca75e6510
|
|
| BLAKE2b-256 |
3af796cac576861efa6bfe0f8f6c7ea035c13281e9ce0e755b984d986895bd79
|
File details
Details for the file py_pushover_client-1.0.0.dev2-py3-none-any.whl.
File metadata
- Download URL: py_pushover_client-1.0.0.dev2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d324e7a8bdd36837a260fffe9eb1d6c2ffdb7d82b146de6007c19a9a249f9134
|
|
| MD5 |
0308375907e003457d71518ed421401e
|
|
| BLAKE2b-256 |
b9a987324d67e976eb09fd288c8bd66d60d7296d4bf603e6085fa70a228f05d0
|