Skip to main content

Python interface for the Growl (GNTP) protocol.

Project description

Growl is a Python interface for the Growl (GNTP) protocol. It can be used to build registration and notification packets for sending over a socket connection.

>>> from growl import Registration, Notification, GROWL_UDP_PORT
>>> from socket import socket, AF_INET, SOCK_DGRAM
>>> addr = ("localhost", GROWL_UDP_PORT)
>>> s = socket(AF_INET, SOCK_DGRAM)
>>> p = Registration()
>>> p.add_notification()
>>> s.sendto(p.payload(), addr)
>>>
>>> p = Notification()
>>> s.sendto(p.payload(), addr)

Installation

To install Growl, simply:

$ pip install growl

You should have either the open-source version of Growl (1.2.2) or the commercial version of Growl (2.1.2). In the Network pane of the Growl preferences, check both:

  • Listen for incoming notifications

  • Allow remote application registration

If you set a server password (which you should), include the password in all packets sent.

Contributions

Forked to Github from Rui Carmo’s netgrowl.py: https://the.taoofmac.com/space/projects/netgrowl

Ingmar J Stein (Growl Team) and John Morrissey both contributed to netgrowl.py

The goal of this fork is to provide compatability with both the commerical and open-source versions of Growl, improve PEP-8 support and encourage contributions by hosting on Github.

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

Growl-0.7.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file Growl-0.7.tar.gz.

File metadata

  • Download URL: Growl-0.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Growl-0.7.tar.gz
Algorithm Hash digest
SHA256 62de663c27b80df20bca178ea25148a563e2c6fac3ec4e1a4e3393bd019c6ddb
MD5 635a182a27394f72412820f86f25b46a
BLAKE2b-256 7ad61335eb14e696173a69bf286a753f459d46091bd12f5a2acfc379b8ec50a5

See more details on using hashes here.

Supported by

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