Skip to content

Supported Devices

CGMPy auto-detects four CGM device export formats. This page lists them and explains how to export data from each. If your device is not on the list, see the Custom format section at the bottom.

Dexcom Clarity

Dexcom exports CGM data from the Clarity web portal.

  • How to export: Sign in to clarity.dexcom.com, open Reports, choose Export, and download the CSV.
  • Column names (header):
  • Marca temporal (AAAA-MM-DDThh:mm:ss) (timestamp)
  • Nivel de glucosa (mg/dL) (glucose)
  • Loader class: Dexcom
from cgmpy import Dexcom

data = Dexcom("dexcom_clarity_export.csv")

FreeStyle Libreview

Abbott's FreeStyle Libre / Libre 2 / Libre 3 sensors report through the Libreview cloud portal.

  • How to export: Sign in to www.libreview.com, open the Glucose History report, and click Download CSV.
  • Column names (header, row 2):
  • Sello de tiempo del dispositivo (timestamp)
  • Historial de glucosa mg/dL (glucose)
  • Loader class: Libreview
from cgmpy import Libreview

data = Libreview("libreview_history.csv")  # header=2 by default

Medtronic pumps and sensors upload to the CareLink portal.

  • How to export: Sign in to carelink.minimed.eu, open Reports, select a date range, and Export the CSV.
  • Column names (header):
  • Fecha y hora (timestamp)
  • Valor del sensor (mg/dL) (glucose)
  • Loader class: MedtronicCarelink
from cgmpy import MedtronicCarelink

data = MedtronicCarelink("carelink_export.csv")

Tandem t:slim (Source)

Tandem pumps upload sensor data to the Tandem Source platform.

  • How to export: Sign in to source.tandemdiabetes.com, choose a date range, and download the CSV report.
  • Column names (header):
  • Timestamp (timestamp)
  • CGM Glucose Value (mg/dL) (glucose)
  • Loader class: TandemDiabetes
from cgmpy import TandemDiabetes

data = TandemDiabetes("tandem_source_export.csv")

Don't see your device?

CGMPy falls back to a generic loader that only needs two columns: a timestamp and a glucose value. Pass their names explicitly with date_col= and glucose_col=:

from cgmpy import GlucoseData

data = GlucoseData(
    "my_export.csv",
    date_col="Datetime",
    glucose_col="Sensor Glucose (mg/dL)",
)

For a full list of accepted column aliases, see Data formats. To request a built-in loader for a new device, open an issue on GitHub.

See also