PyNotify is a Python decorator designed to notify via email the termination (and eventual stacktrace in case of failure) of a function.
N.B.: It support only Gmail accounts for both sender and recipients.
PyNotify is available (for Python 2.7 and 3.x) through pip.
pip install pynotify
from pynotify import pynotify as pn
@pn.ExecutionNotifierDecorator('[email protected]', 'your_pwd', ['[email protected]', '[email protected]'])
def hello():
print "Hello world!"
hello()