Skip to content

Get reminders to send friends/family birthday texts.

Notifications You must be signed in to change notification settings

automagictv/birfday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

birfday (like my 5-year-old nephew says it)

Get reminders to send friends/family birthday texts (video tutorial here).

Setup

This uses pipenv to manage the virtual env and all dependencies. If you don't have pipenv install it here then:

git clone https://github.com/automagictv/birfday.git
cd birfday
pipenv install --ignore-pipfile

For this to work, we need Birthday data in our database. If this is the first time you're running this application, start by seeding the data. Instructions on how to do this are below.

Adding Birthdays

You'll need a csv containing the following fields with a , delimiter:

first_name
last_name
month
day
note [OPTIONAL]
dt_updated [OPTIONAL]

For example:

first_name,last_name,month,day
Test,Birthday,5,15
Test,Birthday1,10,23

Once you have this file you can run the app in SEED mode:

pipenv run birfday/runner.py --mode SEED --file "/path/to/file.csv"

Running the App

To execute in RUN mode:

pipenv run birfday/runner.py

You can run this on the cron by doing something like this:

# Run at 12:05 AM every day
5 0 * * * cd /path/to/birfday && pipenv run birfday/runner.py >> /path/to/cronlog.txt 2>&1

Config

This uses the config.py file to set certain constants

Testing

This package uses pytest. So to run the tests, execute the following:

pipenv run python -m pytest

Or to test an individual module, run:

pipenv run python -m pytest tests/[test_module].py

About

Get reminders to send friends/family birthday texts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages