CGM Data Processor
A robust Python framework for processing and analysing diabetes device data
📈 Process Your Diabetes Data¶
Analyse data from multiple diabetes management systems including XDrip+ and Freestyle Libre. Handle CGM readings, insulin doses, carbs, and treatment notes with confidence.
🩸 CGM Analysis¶
- Gap detection
- Configurable Interpolation
- Quality metrics
💉 Treatment Data¶
- Insulin doses
- Carb intake
- Event notes
🧑🔬 Advanced Features¶
- Automated format detection
- Data alignment
- Flexible export options
- Complete metadata carried through to output format
🚀 Quick Start¶
Install CGM Data Processor - Installation Guide
The simplest way to use the CGM Data Processor is to run python -m src.cli path/to/data/export.file
from the root directory. The following arguments can be supllied:
The cli script, performs multiple processing steps and outputs standardised CSV data. The library can be used in many different configurations depending on your use case. For individual use cases check out our API Reference section.
Example of simple use case:
💡 Key Features¶
- Automated format detection for multiple data sources
- Robust data validation and cleaning
- Gap detection and interpolation for CGM data
- Treatment classification and verification
- Flexible data export options
📊 Example Output Structure¶

🛡️ Responsible Use¶
This tool is designed for data analysis only. Not intended for real-time monitoring or medical decision making. Always consult healthcare providers for medical advice.