Skip to content

ishan0102/hermes-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hermes Mail

Get an email when your Python jobs are done instead of checking your terminal.

from hermes_mail import EmailClient

# Set up the email client
hermes = EmailClient(sender_email="mlguy@gmail.com", sender_password="12345678")

# Call this function when your job is done
hermes.send_email(
    receiver_emails=["foo@gmail.com", "bar@gmail.com"], 
    subject="cuda:0 is free", 
    body="I finished training my models on cuda:0 so feel free to use it."
)

hermes_mail integrates seamlessly with Python, saving you the hassle of SSH-ing into your server to check on your jobs. As of now, this package is only available for Gmail accounts.

Quick Start

pip install hermes-mail

To get started:

  1. Navigate to Google Account Security and ensure that 2-Step Verification is enabled.
  2. Create a Google Account App Password for hermes_mail and save it somewhere. This is the password that you will use to initialize hermes_mail.Client.

With these two easy steps, you're ready to start sending notifications from hermes_mail!

About

Get emails when your Python jobs are done πŸ’Œ

Resources

License

Stars

Watchers

Forks

Languages