A convenient and interactive cocktail recipe finder. It includes 123 cocktail recipes with step-by-step instructions. There are various search and sort options (including alphabetical, by ingredients, cocktail names).
cocktails.json: this file contains cocktail recipes
python.py: this file contains the script (see below).
Feel free to add additional recipes, improve the existing ones, or modify the code as you see fit (subject to the GNU General Public Licence v3 conditions).
NOTE: In the file mediterranean.py there is a corresponding script for mediterranean food recipes instead of cocktails. I'm including it here because the underlying code is essentially the same (with some minor tweaks). The food recipes it draws from are stored in mediterranean_recipes.json.
It is very simple; just run the python script with your favourite IDE, or (if you are on a mac) directly in the terminal (and after navigating to the appropriate directory) by typing:
python cocktail.py
You will be presented with the following:
Welcome to the Cocktail Recipe Finder! Please choose an option from the menu below:
'1' Cocktail Search
'2' Ingredients Search '3' Cocktail List (in alphabetical order)
'4' Ingredients List (in alphabetical order)
'0' ExitEnter your choice (0-4):
after which you can enter a number (0-4), and, well, just follow the instructions. There is also an error tolerance, so don't worry if you don't know precisely how to spell a cocktail recipe; just aim to get it at least 70% right. Overall, it is hopefully pretty self-explanatory --cheers!