Easily send notifications everywhere
Project description
# Notifiers
The easiest way to send push notifications!
[](https://travis-ci.org/liiight/notifiers) [](https://codecov.io/gh/liiight/notifiers) [](https://gitter.im/notifiers/notifiers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
From python:
```python
>>> from notifiers import get_notifier
>>> pushover = get_notifer('pushover')
>>> pushover.notify(title='Foo', message='Bar', token='TOKEN')
```
## Setup
```
pip install notifiers
```
## Usage
Get a notifier:
```python
pushover = notifiers.get_notifer('pushover')
```
Or:
```python
pushover = notifiers.providers.Pushover()
```
Send a notification:
```python
pushover.notify(token='TOKEN', title='Foo', message='Bar')
```
Get notifier metadata:
```text
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.
The easiest way to send push notifications!
[](https://travis-ci.org/liiight/notifiers) [](https://codecov.io/gh/liiight/notifiers) [](https://gitter.im/notifiers/notifiers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
From python:
```python
>>> from notifiers import get_notifier
>>> pushover = get_notifer('pushover')
>>> pushover.notify(title='Foo', message='Bar', token='TOKEN')
```
## Setup
```
pip install notifiers
```
## Usage
Get a notifier:
```python
pushover = notifiers.get_notifer('pushover')
```
Or:
```python
pushover = notifiers.providers.Pushover()
```
Send a notification:
```python
pushover.notify(token='TOKEN', title='Foo', message='Bar')
```
Get notifier metadata:
```text
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.
Project details
Release history Release notifications | RSS feed
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.3.3.tar.gz
(6.1 kB
view details)
File details
Details for the file notifiers-0.3.3.tar.gz.
File metadata
- Download URL: notifiers-0.3.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d42544780d433291da39fa552369cbc83568f4cb38491265cb5c4a6ba61454bb
|
|
| MD5 |
8376cf3ae15059b8bdb8c82ff511fad2
|
|
| BLAKE2b-256 |
9557f7049511dc534c18576c8bf23d105c52fa6fe9fadbfc6f74f8db202af370
|