UNKNOWN
Project description
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)
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(4.1 kB
view details)
File details
Details for the file donemail-0.1.3.tar.gz.
File metadata
- Download URL: donemail-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d18c790a43b9421d54b37e3487a32ed7b1ec8c83e10273614d51a1ec3fd5e80
|
|
| MD5 |
dd7da322680be6c9671a9957932ee2e6
|
|
| BLAKE2b-256 |
93f796e9fa9dd46714785eeb9ad4096b8b86fb4114b99219bc7d3f7b912b87d4
|