v.0.1.3
Notipyer
Notification triggers for Python
Send async email notifications via Python. Get updates/crashlogs from your scripts with ease.
Installation
python -m venv env
source env/bin/activate
pip install notipyer
Email Notifications
Notipyer currently supports Gmail accounts as senders. To allow the library to use your gmail account, make the following changes:
Configuration
from notipyer.email_notify import set_email_config
SENDER_EMAIL = '[email protected]'
SENDER_PASS = 'password'
set_email_config(SENDER_EMAIL, SENDER_PASS)
Sending Email
from notipyer.email_notify import send_email
subject = 'My Email Subject'
body = 'My Email Body'
to_recipients = ['[email protected]', '[email protected]'] # Can be None
cc_recipients = ['[email protected]', '[email protected]'] # Can be None
bcc_recipients = ['[email protected]', '[email protected]'] # Can be None
send_email(subject, body, to_recipients, cc_recipients, bcc_recipients)