Send Python job alerts via email
Project description
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:
- Navigate to Google Account Security and ensure that 2-Step Verification is enabled.
- Create a Google Account App Password for
hermes_mail
and save it somewhere. This is the password that you will use to initializehermes_mail.Client
.
With these two easy steps, you're ready to start sending notifications from hermes_mail
!
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
hermes_mail-0.1.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file hermes_mail-0.1.1.tar.gz
.
File metadata
- Download URL: hermes_mail-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaffd8865613c20025d7659f6d0b1eedf28600d4f03f7a2f13399f867f236330 |
|
MD5 | a871bd5835eb59b94b96a050e373d7e4 |
|
BLAKE2b-256 | f15ca8308db4c3d25b03cd36d7517b74b051addb28f71d68084bc7d7cc47355c |
File details
Details for the file hermes_mail-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: hermes_mail-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0209bc9e25aa46a4109cc72b3b4a5617ed393debc8f9133fd31ef9ddde3a2826 |
|
MD5 | 80cc58b129108b1bc7f6637c93e4afd8 |
|
BLAKE2b-256 | 832d9bf479e6818a3e130c635c756adf835e4963f58ab1143bc7db608410762c |