This repository contains a Python application that generates recipes based on ingredients, cuisine, type of cooking equipment, and diet. It utilizes the https://api.spoonacular.com
API to fetch recipes and provide the user with a list of recipes that they can try out.
- Python 3.6 or higher
requests
library (pip install requests
)dotenv
library (pip install python-dotenv
)
- Clone the repository to your local machine.
- Navigate to the repository directory and create a virtual environment using
python3 -m venv env
. - Activate the virtual environment using
source env/bin/activate
. - Install the required libraries using
pip install -r requirements.txt
. - Create a
.env
file in the root directory and add your Spoonacular API key using the formatAPI_KEY=your_api_key_here
.
- Run the application by running
python main.py
in your terminal. - The application will prompt you to enter ingredients or effects of herbs that you would like to use in your recipe.
- Enter the ingredients or effects separated by commas and press enter.
- The application will then fetch a list of recipes that match your input and display them in the terminal.
- Choose a recipe by entering its index and the application will display the recipe details, including the ingredients and instructions.
Contributions are welcome! If you would like to contribute to this repository, please follow the steps below:
- Fork the repository and create a new branch from
main
. - Make your changes and test them thoroughly.
- Create a pull request with a detailed description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.