About ntfy
ntfy is a command line utility (and to a degree, python library) for sending push notifications. It also can send a notification when a program finishes.
Unlike many existing utilities for Pushover or Pushbullet, it supports multiple backends.
Demo
Install
sudo pip install ntfy
Note: It is suggested to globally (as indicated above, without a virtualenv) install ntfy. It can be installed in a virtualenv, with caveats. Linux notifications requires --system-site-packages to be used and OS X notifications don’t work at all.
Usage
# send a notification ntfy send "Here's a notification!" # send a notification with custom title (default is $USER@$HOST) ntfy -t 'ntfy' send "Here's a notification with a custom title!" # send a notification when the command `sleep 10` finishes # this send the message '"sleep 10" succeeded in 0.2 minutes' ntfy done sleep 10
Backends
Supported
XMPP
Linux Desktop Notifications
Windows Desktop Notifications
Mac OS X Notification Center
ToDo
Config
ntfy is configured via a json config file stored at ~/.ntfy.json. It requires at minimum 1 keys: backends & a config for any backend that requires one.
For full docs consult the wiki
Example Config
{
"backends": ["pushbullet"],
"pushbullet": {"access_token": "<redacted>"}
}
Testing
python setup.py test
Contributors
Metadata
Release files for ntfy 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ntfy-0.7.0.tar.gz | 34.9 kB | Without provenance | Details for ntfy-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ntfy-0.7.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ntfy-0.7.0-py2.py3-none-any.whl |
Total release size: 58.7 kB
Release files / ntfy-0.7.0.tar.gz
| Download URL | ntfy-0.7.0.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2740e5e33e2c0a61ab8b3257b11f337e0dce63a724f8e9d012526c12db1a4233
|
|
BLAKE2b-256 checksum How to use checksums |
f996a5e0cd15b43824ef372ed16fedd73b4489c350cd4c85b454729e3645d8d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ntfy-0.7.0-py2.py3-none-any.whl
| Download URL | ntfy-0.7.0-py2.py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cea1582d8160caa7fa2a29dafbd0573639debe7cc44a584d4f79be382f6720fd
|
|
BLAKE2b-256 checksum How to use checksums |
91ab5d663fb531c0652403b126d326bafa21b97737c83915badfe4acf78115c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ntfy 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.