<commit_before># GNTP

This is a Python library for working with the [Growl Notification Transport Protocol](http://www.growlforwindows.com/gfw/help/gntp.aspx)

It should work as a dropin replacement for the older Python bindings

## Simple Usage

```python
import gntp.notifier
growl = gntp.notifier.GrowlNotifier(
	applicationName = "My Application Name",
	notifications = ["New Updates","New Message"],
	defaultNotifications = ["New Messages"],
	hostname = "computer.example.com",
	password = "<PASSWORD>"
)
growl.register()

growl.notify(
	noteType = "New Message",
	title = "You have a new message",
	description = "A longer message description",
	icon = "http://example.com/icon.png",
	sticky = False,
	priority = 1,
)
```

## Installation

	$ pip install gntp

## Bugs

[GitHub issue tracker](https://github.com/kfdm/gntp/issues)<commit_msg>Update examples in README<commit_after># GNTP

This is a Python library for working with the [Growl Notification Transport Protocol](http://www.growlforwindows.com/gfw/help/gntp.aspx)

It should work as a dropin replacement for the older Python bindings


## Installation
You can install with pip

	$ pip install gntp

then test the module

	$ python -m gntp.notifier

## Simple Usage

```python
import gntp.notifier

# Simple "fire and forget" notification
gntp.notifier.mini("Here's a quick message")

# More complete example
growl = gntp.notifier.GrowlNotifier(
	applicationName = "My Application Name",
	notifications = ["New Updates","New Messages"],
	defaultNotifications = ["New Messages"],
	# hostname = "computer.example.com", # Defaults to localhost
	# password = "<PASSWORD>" # Defaults to a blank password
)
growl.register()

# Send one message
growl.notify(
	noteType = "New Messages",
	title = "You have a new message",
	description = "A longer message description",
	icon = "http://example.com/icon.png",
	sticky = False,
	priority = 1,
)

# Send a different message
growl.notify(
	noteType = "New Updates",
	title = "There is a new update to download",
	description = "A longer message description",
	icon = "http://example.com/icon.png",
	sticky = False,
	priority = -1,
)

```

## Bugs

[GitHub issue tracker](https://github.com/kfdm/gntp/issues)
{'fraction_non_alphanumeric': 0.12115732368896925, 'fraction_numerical': 0.00135623869801085, 'mean_word_length': 4.60253164556962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6729920', 'n_tokens_mistral': 736, 'n_tokens_neox': 708, 'n_words': 222}