TLDR; This is a projet to setup mail system to deliver to recipients when the row counts on a table in postgres is below threshold
This project is based on Python3.6 and is built in a virtualenv
All required libraries is available in the requirements.txt
- Download the whole project
- Navigate to /bin
- Type source activate
- This will bring you into a virtualenv
- Navigate to src/ The source code is inside here.
- Change the variables to suit your requirements
To execute, just type python /src/row_count_status_mail.py