Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toddrob99/pyprowl
Python module for sending Prowl notifications
https://github.com/toddrob99/pyprowl
api prowl prowl-notifications python python27
Last synced: 19 days ago
JSON representation
Python module for sending Prowl notifications
- Host: GitHub
- URL: https://github.com/toddrob99/pyprowl
- Owner: toddrob99
- License: gpl-3.0
- Created: 2018-05-31T17:45:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-08T16:57:10.000Z (almost 5 years ago)
- Last Synced: 2024-12-17T19:25:17.448Z (22 days ago)
- Topics: api, prowl, prowl-notifications, python, python27
- Language: Python
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyprowl
Python module for sending Prowl notifications
Created by Todd Roberts
https://github.com/toddrob99/pyprowl
## Usage
import pyprowl
p = pyprowl.Prowl('YOUR_PROWL_API_KEY')
try:
p.verify_key()
print("Prowl API key successfully verified!")
except Exception as e:
print("Error verifying Prowl API key: {}".format(e))
exit()try:
p.notify(event='Event name', description='Description of event',
priority=0, url='http://www.example.com',
#apiKey='uncomment and add API KEY here if different',
appName='Name of app sending the notification')
print("Notification successfully sent to Prowl!")
except Exception as e:
print("Error sending notification to Prowl: {}".format(e))## Changelog
### v3.0.1
* Added support for python 3 using requests module### v1.0.2
* Fixed package layout (moved code from `pyprowl.py` to `__init__.py` to support importing of module)### v1.0.1
* Updated package layout for submission to PyPI### v1.0
* Supports verification of API key and sending of notifications
* API key can be set at instantiation and left out of subsequent calls, or it can be set on each call
* App name can be set at instantiation and left out of subsequent calls, or it can be set on each call to notify()