/my_twilio

Simple utility functions to use Twilio to text myself.

Primary LanguagePythonMIT LicenseMIT

my_twilio

Used to text myself when long-running ML training has finished. Simply call my_twilio.text_me("Training Finished!") to receive an SMS message.

Usage

Sign up for an account on twilio.com. The free trial includes $25 of credit. At a price of about 1c per text, this is about 2500 notifications.

Install

git clone https://github.com/blengerich/my_twilio
cd my_twilio
pip install -e .

Copy the config file to a private file that will contain the information from your Twilio account:

cp config_template.py config.py
vim config.py

Do NOT share config.py (it is ignored by .gitignore by default).

Text Yourself in Python

>>> import my_twilio
>>> my_twilio.text_me("Training Finished!")