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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size notifo-0.3.0.tar.gz (3.7 kB) | File type Source | Python version None | Upload date | Hashes View |