Skip to content

Sends you an email when python function/block/script finishes

License

Notifications You must be signed in to change notification settings

alexandershov/donemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.org/alexandershov/donemail.svg?branch=master

What is it?

Donemail sends you an email when some process/command/function/code completes.

Install

pip install donemail

Usage

You need a SMTP server running on port 25.

In the command line:

# run command 'sleep 10' and send an email after it exits
donemail run bob@example.com sleep 10

or:

# send an email when process with pid 123 exits
donemail wait bob@example.com 123

As a decorator:

from donemail import donemail

# send an email after each long_running_function() call
@donemail('bob@example.com')
def long_running_function():
    sleep(10)

As a context manager:

from donemail import donemail

# send an email after sleep(10) completes
with donemail('bob@example.com'):
    sleep(10)

About

Sends you an email when python function/block/script finishes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages