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.2.tar.gz
(5.0 kB
view details)
File details
Details for the file notifiers-0.3.2.tar.gz.
File metadata
- Download URL: notifiers-0.3.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
debf244254092dfcddd425efcade4dc07b18c4d74d3b8ca35d502c35d1164353
|
|
| MD5 |
4fe2f973d6274ab7178dcb08bb55f6c5
|
|
| BLAKE2b-256 |
b3cbd6c3728f7e7c8d9c943ecbbf0869133c5bd11dcf0ccb545d9dc4240fcbf9
|