Metadata-Version: 2.1
Name: taskmessenger
Version: 0.0.1rc0
Summary: Write emails after finishing a task
Home-page: https://github.com/ArmaanAhmed22/TaskMessenger
Author: Armaan Ahmed
Author-email: aahmedresearch@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/ArmaanAhmed22/TaskMessenger/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

## Example:
Sending a message within the function:
```python
from taskmessenger.send import CompleteMessage,EmailData
import getpass

c = CompleteMessage("user@example.com") #Use specified email with the default optional arguments
p = getpass.getpass() #Get password
c.set_password(p) #Set the one-time password 
@c.send_function_specific_email #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:
```python
from taskmessenger.send import CompleteMessage,EmailData
import getpass

c = CompleteMessage("user@example.com")
p = getpass.getpass()
c.set_password(p)
e = EmailData("SUBJECT","BODY",attachments=["path/to/attachment1","path/to/attachment2"])
@c.send_email_after(e) #Send message
def func():
	print("Doing something...")

func()

```


