Skip to main content

Easily send notifications everywhere

Project description

The easiest way to send notifications!

Travis CI Codecov https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square PyPi version Supported Python versions License Status Docker build RTD

See Releases for recent changes

Got an app or service and you want to enable your users to use notifications with their provider of choice? Working on a script and you want to receive notification based on its output? You don’t need to implement a solution yourself, or use individual provider libs. A one stop shop for all notification providers with a unified and simple interface.

Supported providers

Advantages

  • Spend your precious time on your own code base, instead of chasing down 3rd party provider APIs. That’s what we’re here for!

  • With a minimal set of well known and stable dependencies (requests, jsonschema and click) you’re better off than installing 3rd party SDKs.

  • A unified interface means that you already support any new providers that will be added, no more work needed!

  • Thorough testing means protection against any breaking API changes. We make sure your code your notifications will always get delivered!

Installation

Via pip:

pip install notifiers

Or Dockerhub:

docker pull liiight/notifiers

Basic Usage

>>> from notifiers import get_notifier
>>> p = get_notifier('pushover')
>>> p.required
{'required': ['user', 'message', 'token']}
>>> p.notify(user='foo', token='bar', message='test')
<NotificationResponse,provider=Pushover,status=Success>

In the near future

  • SendGrid, Graphite, Stride, Prowl, Teams, Twilio and many more…

  • Low level providers (Amazon SNS, Google FCM, OS Toast messages) via extra dependencies

  • Docs!

Why python 3 only?

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

See Docs for more information

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

notifiers-0.6.3.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notifiers-0.6.3-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file notifiers-0.6.3.tar.gz.

File metadata

  • Download URL: notifiers-0.6.3.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for notifiers-0.6.3.tar.gz
Algorithm Hash digest
SHA256 1a90d196e3483956b6593c6f0e410e31f5d7eaab07b11b35c718668878c4a9d0
MD5 40249bf7b5fbddf4de5ad203df47f735
BLAKE2b-256 f9c646a12f01c050ad31e63aa3b8b93da77966b528ec44c6631d989b93b7ed77

See more details on using hashes here.

File details

Details for the file notifiers-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for notifiers-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2adad110ef5b9de2e45f1e64c34e74bdad34dfdeedbd4b08f501322d2cb0551
MD5 9a98d727c6b1c8b20a6ec2b31b7d723b
BLAKE2b-256 08c2c32bc7fa9d13f4cfd280db6d6988ee4f31b965d7f971d1f995c6353eff95

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