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

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.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pyprowl-3.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file pyprowl-3.0.1.tar.gz.

File metadata

  • Download URL: pyprowl-3.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyprowl-3.0.1.tar.gz
Algorithm Hash digest
SHA256 915d482a08837916b67129b7708d3233915506dda3aaa1f5b6b0399698f6043a
MD5 86a24de43405fb0d6b86faa55c92eb0f
BLAKE2b-256 7560702a8f704d341294ee29221660d571dfed97e5f4f2dbcac4cb497a4cd57d

See more details on using hashes here.

File details

Details for the file pyprowl-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyprowl-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyprowl-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49a86b4cabc1bf58cfd7c5838e3d2d2e197abf2736a7b0d50d50b055a1ccf013
MD5 f967249318d60e73c1cd46626c0d707d
BLAKE2b-256 400790a3884d0476193d0c65a31478712bbfe970ecec5f1dbed0ecc1ed515801

See more details on using hashes here.

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