Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spookey/notify
mail, sms and twitter alert in python
https://github.com/spookey/notify
Last synced: about 1 month ago
JSON representation
mail, sms and twitter alert in python
- Host: GitHub
- URL: https://github.com/spookey/notify
- Owner: spookey
- Created: 2013-07-04T17:27:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-24T15:03:32.000Z (over 10 years ago)
- Last Synced: 2024-10-09T09:49:19.005Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# notify
mail and sms alert in python
use this software as a platform to enable messaging and alerting to your software or scripts
this code is python3
## configuration
to build yourself a configuration change the sample values in `util.py` and execute it afterwards:
python3 util.py
you should have a __config.json__ afterwards.
twitter:
generate an api key on [dev.twitter.com](https://dev.twitter.com "twitter dev") or ask me for mine.enter the keys in `util.py` then run `python3 twitter.py` to generate oauth credentials.
## cli
this is a command line interface for your scripts
syntax: see `python cli.py -h`
Simple mail example:
python3 cli.py mail [email protected] 'This is a test message' --subject 'Test'Mail to multiple recipients:
python3 cli.py mail [email protected] [email protected] \
'There is an attached file' \
--cc [email protected] \
--subject 'Test' \
--sender 'Command Line ' \
--files README.markdownSimple aspsms example:
python3 cli.py aspsms 0491234567890 'This is a test message'
Simple twitter example:
python3 cli.py twitter 'This is a test message' --mention user1 user2
this uses a __smtp__ connection to a server configured.
syntax: see contents of `sample.py`
### aspsms
this uses the [http://aspsms.ch/](http://aspsms.ch/ "aspsms") __webservice__.
requires [python-requests](http://python-requests.org/ "python-requests") module.
syntax: see contents of `sample.py`
posts http messages to twitter using oauth.
requires [requests-oauthlib](https://requests-oauthlib.readthedocs.org/en/latest/ "python-requests-oauthlib") module.
syntax: see contents of `sample.py`
#### todo
* More Channels
* irc
* gsmsms* Documentation
:smiley_cat: :smile_cat: :smiley_cat: