This application helps users to keep track of their intermediate fasting by managing their meals, fasting hours, and weight. Users can add meals, update meals, update their weight, change fasting hours, and generate reports.
main.py
Main Application Loop & User Interface |
|||
Data Management
load_user_data save_user_data |
Meal Operations
add_meal update_meal delete_meal |
User Operations
update_weight change_fasting_hours |
|
Goal Management
update_cups_of_water_goal count_cups_of_water_today |
Reporting
generate_report calculate_next_meal_time |
- Ensure Python 3 is installed on your system.
- Download or clone the repository.
- Open a terminal or command prompt, navigate to the directory where the files are located.
- Run
python main.py
orpython3 main.py
depending on your system. - Follow the on-screen prompts to use the application.
- Add meal: Users can add meals with date and time.
- Update meal: Users can update the date and time of their previously added meals.
- Delete meal: Users can delete a previously added meal.
- Update weight: Users can input their current weight.
- Change fasting hours: Users can change their fasting hours.
- Update cups of water goal: Users can update their daily cups of water intake goal.
- Generate report: Users can generate a fasting report that includes meal history with dates, fasting hours, weight, and daily cups of water intake.
- Exit: Users can exit the application.
The application uses a JSON file (user_data.json) to store user information.