Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blood Glucose Tracker

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.

Project Structure

├── 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)

Features

  • 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

Installation and Setup

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

Running the Application

python cli.py

You will see a menu with options:

  1. Create User
  2. View All Users
  3. Add Glucose Entry
  4. View Glucose Entries for a User
  5. Delete User
  6. Edit Glucose Entry
  7. Exit

Database

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.

Requirements

Install all dependencies with: pip install -r requirements.txt

License (MIT)

Author

Mohamed Salim Agil

About

A lightweight CLI application that helps people living with diabetes record, review, and update their glucose levels. Designed with persistent storage and a modular architecture.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages