This tool is a secret santa name randomiser. It reads, from a csv file, a list of would be Santas along with their email address, gift preferences, and any dietary requirements or other gift restrictions. This file should be of the following format.
"Santa Claus","s.claus@pole.north","Traveling around the world really fast","Cookie only"
"Mrs Claus","m.claus@pole.north","Baking","Please! no cookies"
"Rudolph R Reindeer","rudolph.r.reindeer@pole.north","If it's not carrots I'm not interested","I already said, carrots!"
"Head Elf","elf.1@pole.north",,Each row must contain a name, email address, gift preferences, and gift restrictions. The preferences and restrictions may be empty, but their comma-separated columns must remain in place.
Install the package using uv, pip, etc
uv venv
uv pip install -e .Then you can run the randomiser like so
uv run secret_santa -hOnce Santas have been matched into pairs, emails can then be sent to inform each of their chosen giftee. To do this whithout revealing the pairings to the organiser, emails can be automatically sent using this tool.
To do this, we integrate with smtp.gmail.com. Therefore, the origin email address, from which emails will be sent to each santa, must be a gmail account. You will also need to provide an app password for that account. You will be prompted to provide this before emails are sent.
This tool endeavours to make it easy for the organiser to remain ignorant of the final pairings. However, this requires them not to look at the emails sent from their gmail account.
If you wish to save a copy of the final pairings in an easier format, there is an
option to output the name pairs to a csv file. See the help (-h/--help) for details