Skip to main content

Prowl API wrapper for Python

Project description

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, e:
	print "Error verifying Prowl API key:",e
	exit()

try:
	p.notify('Event name', 'Description of event', 
			 priority=0, url='http://www.example.com', appName='Name of app sending the notification')
	print "Notification successfully sent to Prowl!"
except Exception, e:
	print "Error sending notification to Prowl:",e

Changelog

v3.0.0

  • 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()

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

pyprowl-3.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pyprowl-3.0.0-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page