A client for the Abbott LibreLinkUp API
Project description
pylibrelinkup
pylibrelinkup
is a Python client for the LibreLinkUp API, which allows you to interact with the LibreLinkUp service to retrieve glucose data and other related information. This project is a Python implementation inspired by the libre-link-up-api-client project.
Installation
To install pylibrelinkup
, you can use pip
:
pip install pylibrelinkup
Usage
Initialization
First, you need to import the necessary modules, initialize the client, and authenticate with your LibreLinkUp credentials:
from pylibrelinkup.client import LibreLinkUpClient
client = LibreLinkUpClient(username='your_username', password='your_password')
client.authenticate()
Getting Patient List
You can fetch the patient list using the get_patient_list
method:
patient_list = client.get_patient_list()
print(patient_list)
Getting Patient data
Retrieve patient data using the read
method:
patient = client.get_patient_list()[0]
patient_data = client.read(patient_id=patient.patient_id)
Get the latest glucose data:
latest_glucose = patient_data.current
print(latest_glucose)
Get the historical glucose data:
historical_glucose = patient_data.history
print(historical_glucose)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pylibrelinkup-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b8ea6eb24da34cc5838956f0a448c867bc79dd0d9d3299c420432740458370 |
|
MD5 | 864cb9e89728f31ab227800fa9996779 |
|
BLAKE2b-256 | c6280d2e5e1910daea7907c19d341003f0e8d1ff95f6310fa6f377461385939f |