This Python script is designed to help you organize a Secret Santa gift exchange. It allows you to input a list of names, shuffles them, and assigns each person a Secret Santa recipient.
-
Run the script by executing the following command in your terminal:
python3 secret_santa.py
-
Choose whether to pass a file path (1) or create a temporary file (2) for the list of names.
-
If creating a temporary file, the script will display the file path and open it in the Vi editor after a countdown.
-
Enter the names in the Vi editor and save the file.
-
The script will shuffle the names, assign Secret Santa pairs, and display the results.
-
Create a Temporary File: The script provides an option to either pass a file path with names or create a temporary file for entering names.
-
Vi Editor Integration: If you choose to create a temporary file, the script opens it in the Vi editor for you to conveniently enter the list of names.
-
Countdown Timer: Displays a countdown timer when opening the temporary file in Vi editor, giving you time to prepare before entering names.
- Python 3
Developer - Ajay Agrawal
- 🌌 Profile
- 🐦 Twitter Bot (@mickbotsays)