The Blood Glucose Tracker is more than just a command-line app—it’s a practical tool designed to help people manage real health needs. Whether you're living with diabetes, monitoring a loved one, or keeping track for medical guidance, this tracker makes it easy to log, review, and update glucose readings in a structured way. With persistent storage using SQLite and a clean modular architecture, it provides a reliable way to record daily health data that actually matters.
├── cli.py # Handles interactive menu and user commands
├── controllers.py # Business logic connecting models and CLI actions
├── data/
│ └── blood_glucose.db # SQLite database file
├── db/
│ ├── __init__.py
│ └── database.py # Database connection and initialization
├── main.py # Entry point to start the application
├── models/
│ ├── __init__.py
│ ├── glucose_entry.py # GlucoseEntry model representing glucose data
│ └── user.py # User model representing application users
├── requirements.txt # Python dependencies
├── utils.py # Helper functions
└── venv/ # Virtual environment (optional)
- Create and manage users
- Add blood glucose entries for a user
- View all users
- View glucose entries by user
- Edit glucose entries
- Delete users
- Persistent storage using SQLite
Clone or download the project, then run the following: cd blood_glucose_tracker python3 -m venv venv && source venv/bin/activate || venv\Scripts\activate pip install -r requirements.txt
python cli.py
You will see a menu with options:
- Create User
- View All Users
- Add Glucose Entry
- View Glucose Entries for a User
- Delete User
- Edit Glucose Entry
- Exit
The database file is located at data/blood_glucose.db.
It is created automatically when you run the application for the first time along with the required tables.
Install all dependencies with: pip install -r requirements.txt
Mohamed Salim Agil