# Nutritional Value Calculator 🥗📊
A Python GUI application that calculates nutritional values for food items and
recipes using the Edamam API. Track calories, proteins, fats, and carbohydrates
for individual ingredients or entire meals!
## Features ✨
- **Dark Theme GUI** - Modern and eye-friendly interface
- **Dual Modes** - Calculate for single items or full recipes
- **Nutrition Breakdown** - Get values for both total quantity and 100g
- **Error Handling** - Input validation and API error messages
- **Recipe Saving** - Export nutrition data to text files
- **Undo Functionality** - Remove accidental entries easily
## Installation 🛠️
### 1. Clone Repository
```bash
git clone https://github.com/vivitoa/Nutritional-Value-Calculator.git
cd Nutritional-Value-Calculator
pip install requests python-dotenv
- Register at Edamam Developer Portal
- Create new application to get API credentials
- Create
.env
file in project root:
API_ID=your_app_id_here
API_KEY=your_api_key_here
- Launch Application
python nutrition_calculator.py
- Choose Mode
-
Single Food Mode:
- Enter food name and quantity
- See instant nutrition breakdown
-
Recipe Mode:
- Enter dish name
- Add ingredients with quantities
- View total nutrition when done
- Save recipe with nutrition data
- Controls
Enter
to submit formsDelete
to remove ingredientsTab
to navigate between fields
- Python 3 - Core programming language
- Tkinter - GUI development
- Edamam API - Nutrition data source
- requests - API communication
- dotenv - Environment management
MIT License - See LICENSE file
Important Note: You must obtain your own API credentials from Edamam for the application to work.
⭐ Feel free to star the repository if you find this useful!
🐛 Report issues in GitHub repository
💡 Suggestions and contributions welcome!