TaskMessenger
Tool to send a designated email after task is finished
Introduction
Waiting for the termination of a long task can be tedious and unpractical. Instead, it would be useful if an email reminder can be sent automatically at the termination of a task. This package allows for such functionality.
Requirements
- Python >=3.6
Installation
From PyPi: pip install taskmessenger
From GitHub (newest version): git clone https://www.github.com/ArmaanAhmed22/taskmessenger & cd taskmessenger & pip install -e .
Example:
Sending a message using data from the function:
from taskmessenger.send import CompleteMessage,EmailData
c = CompleteMessage("user@example.com") #Use specified email with the default optional arguments
@c.send_function_specific_email(lambda x: EmailData("Output from 'a'",str(x))) #Send email message based on the second element of the tuple
def a(i): #Function will return i**2 and send as an email [Subject: i, Body: i**2]
return (i**2,EmailData(str(i),str(i**2)))
print(a(66)) #4356
Sending a function value-independent message:
from taskmessenger.send import CompleteMessage,EmailData
c = CompleteMessage("user@example.com")
e = EmailData("SUBJECT","BODY")
@c.send_email_after(e) #Send message
def func():
print("Doing something...")
func()
Sending a message inline (without a function):
from taskmessenger.send import CompleteMessage,EmailData
c = CompleteMessage("user@example.com")
c.send(EmailData("SUBJECT","BODY"))
Citation:
Bibtex:
@software{armaan_ahmed_2021_5684676,
author = {Armaan Ahmed},
title = {ArmaanAhmed22/TaskMessenger: TaskMessenger v1.0.0},
month = nov,
year = 2021,
publisher = {Zenodo},
version = {v1.0.0},
doi = {10.5281/zenodo.5684676},
url = {https://doi.org/10.5281/zenodo.5684676}
}
Metadata
Release files for taskmessenger 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| taskmessenger-1.0.2.tar.gz | 4.5 kB | Without provenance | Details for taskmessenger-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taskmessenger-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for taskmessenger-1.0.2-py3-none-any.whl |
Total release size: 9.3 kB
Release files / taskmessenger-1.0.2.tar.gz
| Download URL | taskmessenger-1.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6b44a8f39fc5f2dbafc765c7dce744ab0937c2161dd7a86dcfd6e89e0f716be
|
|
BLAKE2b-256 checksum How to use checksums |
def4200f9f1905d4f87480baab99461428eeb8528ddfed30b879d7251732977c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / taskmessenger-1.0.2-py3-none-any.whl
| Download URL | taskmessenger-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d722c5882006e65a2579e060bcc11fe0eae9a572868b74cf3bfe8059184d2e
|
|
BLAKE2b-256 checksum How to use checksums |
8ccf760e98dbecd71bd2cc27f97e0a1d564b4772c3e0a6f82f0099330f2c6ab2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for taskmessenger 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.