Python library for the notifo.com API
Project description
Introduction
notifo.py is a python library for the notifo.com notification service.
Installation
Install via pip:
pip install notifo
Or if you must:
easy_install notifo
Usage
notifo.py can be imported into any python module:
import notifo notifo.send_notification(login, token, recipient, msg, label, title, uri) notifo.send_message(login, token, to, msg) notifo.subscribe_user(login, token, user)
Return data is the parsed json status code:
{u'status': u'success', u'response_code': 2201, u'response_message': u'OK'}
There is also a cli client included:
notifo_cli.py -u user -s secret -n name [-m] [-l label] [-t title] [-c callback] [TEXT]
Contribute
If you want to contribute:
Fork the project.
Make your feature addition or bug fix.
Add tests for it. This is important so I don’t break it in a future version unintentionally.
Commit, do not mess with version
Send me a pull request. Bonus points for topic branches.
History
0.3.0 (2010-10-01)
add support for messaging
subscribe user from cli client if no msg text is given
message text with spaces allowed without quotes
0.2.2 (2010-09-07)
fix kwargs issue with exported methods
0.2.1 (2010-07-05)
fallbacks for json import
improved HTTP error handling
unit tests
0.2.0 (2010-06-27)
add cli client to send notifications
0.1.1 (2010-06-25)
fix typo which prevented proper function call of subscribe_user
0.1.0 (2010-06-17)
add basic API access
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
File details
Details for the file notifo-0.3.0.tar.gz
.
File metadata
- Download URL: notifo-0.3.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac204228207afd48ebc29c2a25ed462dd76f727d6a0f93aecaf26711aea1042 |
|
MD5 | f030054855dfb78709f8b79ae8b0dd14 |
|
BLAKE2b-256 | 4c7d1b22a3b00103fa05a8d44505494fc0c96d4e84767572dcb0bd9b59009d54 |