Skip to main content

UNKNOWN

Project description

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

What is it?

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

Install

pip install donemail

Usage

You need a SMTP server running on port 25.

As a decorator:

from donemail import donemail

@donemail('bob@example.com')
def long_running_function():
    sleep(10)

As a context manager:

from donemail import donemail

with donemail('bob@example.com'):
    sleep(10)

In the command line:

donemail run bob@example.com sleep 10

or:

# send email when pid 123 finishes
donemail wait bob@example.com 123

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

donemail-0.1.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page