Skip to content

gitter-badger/notifiers

 
 

Repository files navigation

Notifiers

Generic way to use notification services

travis codecov

From python:

import notifiers

pushover = notifiers.get_notifer('pushover')
pushover.notify(title='Foo', message='Bar', token='TOKEN')

Setup

pip install notifiers

Usage

Get a notifier:

pushover = notifiers.get_notifer('pushover')

Or:

pushover = notifiers.providers.Pushover()

Send a notification:

pushover.notify(token='TOKEN', title='Foo', message='Bar')

Get notifier metadata:

print(pushover.metadata)

{
    "url": "http://..."
    "description": "A Great notifier!"
    ..
}

In the near future

  • Many more providers
  • CLI
  • Environment variable support
  • Docs

Why python 3 only?

I wanted to avoid the whole unicode issue fiasco if possible, but there's not real constraint in adding python 2 support. If there's an overwhelming desire for this, i'll do it. Probably.

About

The easy way to send notifications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%