Added recipe finder and red black tree #911
Open
+291
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.
Issue Title
added Recipe finder
added red black tree
Info about the Related Issue
The goal of the Recipe Finder project is to create a user-friendly application that helps individuals discover recipes based on the ingredients they have on hand. By leveraging the Spoonacular API, the application aims to provide a convenient way for users to input their available ingredients and receive tailored recipe suggestions, promoting cooking creativity and minimizing food waste. The project also seeks to enhance user experience through a graphical interface, making it accessible for everyone, regardless of their cooking expertise.
The goal of implementing a Red-Black Tree (RBT) was to create a self-balancing binary search tree that ensures efficient data operations such as insertion, deletion, and search. Red-Black Trees are particularly useful in applications where maintaining a balanced tree structure is crucial for performance, as they guarantee logarithmic time complexity for these operations.
Name
Purnima Gupta
GitHub ID
purnima2904
Email ID
[email protected]
Identify Yourself
GSSOC
Closes
*Closes: #909 *
*Closes: #922 *
Describe the Add-ons or Changes You've Made
The Recipe Finder project is a Python application designed to help users find recipes based on the ingredients they have available. Key features and functionalities include:
User Interface: A graphical user interface (GUI) built with Tkinter allows users to enter their ingredients and search for recipes seamlessly.
API Integration: The application utilizes the Spoonacular API to fetch recipes. Users can input a list of ingredients, and the application retrieves matching recipes from the API.
Recipe Display: When recipes are found, they are displayed in a new window, allowing users to click on each recipe title to open the full recipe in a web browser.
Type of Change
Select the type of change:
How Has This Been Tested?
User Input Validation: Tests were conducted by entering valid and invalid inputs. For instance, testing with both single ingredients and complex combinations helped confirm that the application correctly handles different input formats.
API Response Handling: The application was tested under various scenarios, such as when the API returned no recipes or when the API request failed. Appropriate error messages were verified to ensure they provide clear guidance to users.
Checklist
Please confirm the following: