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 Client
client = Client(email='your_username', password='your_password')
client.authenticate()
Getting Patient List
You can fetch the list of patients using the get_patients
method:
patient_list = client.get_patients()
print(patient_list)
Getting Patient data
Retrieve patient data using the read
method:
patient = patient_list[0]
patient_data = client.read(patient_identifier=patient.patient_id)
The read
method accepts a patient_identifier
parameter in the form of a UUID
, str
, or Patient
object.
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
File details
Details for the file pylibrelinkup-0.2.1.tar.gz
.
File metadata
- Download URL: pylibrelinkup-0.2.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4eb561bc61096a6937f2562cacd25ac1f2b9c1daf79ef061a3d1f4105d0ff3 |
|
MD5 | 62df21771969d503d14bf9446f3b5be0 |
|
BLAKE2b-256 | 8ee328ef7716cfbe920b5b0af065c18f8aff1f1b5ce4e3ddcab7faec63b6a0f8 |
File details
Details for the file pylibrelinkup-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pylibrelinkup-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3f3ff4d0ac11608496e729530444d4f6368d5d8bc899ac732ce1fcb2b13e236 |
|
MD5 | 12cce913158dce43e6becc323670b5b3 |
|
BLAKE2b-256 | 2c0b6be89532afdb359e21997ea7abdbcd9ff0466d1de8301101765c03a7e409 |