A module for interacting with ntfy.sh notifications.
Project description
pyntfy
A module for interacting with ntfy.sh notifications.
Installation
You can install pyntfy via pip.
$ pip install pyntfy
Usage
import pyntfy
# Send a sample notification.
notif = pyntfy.Notification('test_notification', 'Hello, world!', title='Notification Title')
notif.send()
# Send a timed notification.
timed_notif = pyntfy.Notification('test_notification', 'Hello, world!', title='Notification Title', delay='1m')
timed_notif.send()
Actions
import pyntfy
notif = pyntfy.Notification('test_actions', 'Hello, world!')
notif.add_action(pyntfy.actions.ViewAction('Label', 'https://www.example.com/'))
notif.send()
Planned Features
- Webhook support.
- Allow for JSON data as input.
- Proper tests.
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
pyntfy-0.2.1.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file pyntfy-0.2.1.tar.gz
.
File metadata
- Download URL: pyntfy-0.2.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f11c3ef1ef12f723b26e3dc6bc8c146967d9c7d9f453923aca98f0d1679b76 |
|
MD5 | 857556ba3492111e4b9362c99e052b81 |
|
BLAKE2b-256 | 5602d204945eca4e0d2d0f2b1c67391d608c9cfe92ca96f7a81d51e143377d2c |
File details
Details for the file pyntfy-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pyntfy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a5125d1da2428b13efaac02fa0f85b1c2ca34afc43dbcc1455cd58a0556f1c2 |
|
MD5 | 7b3542eee889a6268a4fb29be37079b4 |
|
BLAKE2b-256 | 8679d3121d4f2bfad2b45f8a53b8aa56792cbc9f92ab6471baf958b329f4080d |