Python client for the Pushover.net notification API
Project description
pushovernet
Python client for the Pushover.net notification API.
Installation
pip install pushovernet
For AWS Secrets Manager support:
pip install pushovernet[aws]
Configuration
Create ~/.config/pushovernet/config.toml:
[pushover]
token = "your_app_token"
user_key = "your_user_key"
default_device = ""
default_priority = 0
default_sound = ""
Usage
from pushovernet import PushoverClient
with PushoverClient() as client:
client.send_message("Hello from pushovernet")
client.send_message(
"Server alert",
title="Alert",
priority=1,
sound="siren",
)
# Emergency priority (requires retry/expire)
client.send_message(
"Critical failure",
priority=2,
retry=60,
expire=3600,
)
Explicit credentials
client = PushoverClient(token="...", user_key="...")
Environment variables
from pushovernet import PushoverClient, PushoverConfig
config = PushoverConfig.from_env() # reads PUSHOVER_TOKEN, PUSHOVER_USER_KEY
client = PushoverClient(config=config)
AWS Secrets Manager
from pushovernet import PushoverClient, PushoverConfig
config = PushoverConfig.from_aws_secret("my/pushover/secret", region="us-east-1")
client = PushoverClient(config=config)
The secret JSON should contain token and user_key keys.
API Coverage
- Messages: send, with attachments, emergency priority
- User validation
- Receipts: query, cancel, cancel by tag
- Sounds: list available sounds
- Rate limits: query app limits
- Groups: create, list, get, add/remove/enable/disable users, rename
- Glances: send glance data
- Subscriptions: migrate
- Licenses: assign, get credits
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
pushovernet-0.1.0.tar.gz
(8.5 kB
view details)
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 pushovernet-0.1.0.tar.gz.
File metadata
- Download URL: pushovernet-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e335de05f43ec962543f86e56a9a7cf4d376f44e2a5a18362241f1c2481f9df9
|
|
| MD5 |
5a56558ee48baeefe807a09b1a86d180
|
|
| BLAKE2b-256 |
4fec5d79e9a7cf90b78401b1adf88301aa02b45b8c1a395b5cd8e14a053a7ff5
|
File details
Details for the file pushovernet-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pushovernet-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bb6c2716dedbddfdfde63887dd8ec60865ffa1aeaa85eedc785676a2ff3ee4b
|
|
| MD5 |
3dfa82089be2ed2b752a1b26863d8658
|
|
| BLAKE2b-256 |
6b5532ea2c88226f7126605b07a7b86ac4620a8fedfcc0406acb05da77291ac0
|