Skip to content

CLI script to generate a list of names and matches for a gift exchange

Notifications You must be signed in to change notification settings

cecyc/gift_exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gift Exchange maker 🎅 🎃 🎁

Python script to generate a CSV list for a gift exchange.

To run the script

The script takes a CSV of names as an argument of participants in the exchange to match with others.

Simply run python run_gift_exchange_script.py -f PATH_TO_CSV_OF_NAMES

Troubleshooting

This will run in Python 2, but it was written in Python 3, so Python 3 is recommended.

If you need to update your version of Python, I recommend pyenv

If not, you should be able to run Homebrew if you have it! Simply run brew install python. This should default to python 3.

If you still have trouble after you've installed python 3, you may need to specifically call python 3 when you run your command, like so:

python3 run_gift_exchange_script.py -f PATH_TO_CSV_OF_NAMES

Sample CSV generated:

sender,match_name,match_email
Jane Doe,MJF,MJF@example.com
John Doe,Jane Doe,janedoe@example.com
Johnny Appleseed,John Doe,johndoe@example.com
MJF,Boaty McBoatface,boaty@example.com
Boaty McBoatface,Johnny Appleseed,johnnyappleseed@example.com

The file will be named gift-exchange-matches-TODAYS_DATE.csv and will appear at the root of the folder where the script has been run from.

Running the script multiple times will simply overwrite the existing file.

About

CLI script to generate a list of names and matches for a gift exchange

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages