Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylibrelinkup-0.2.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

pylibrelinkup-0.2.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for pylibrelinkup-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ec4eb561bc61096a6937f2562cacd25ac1f2b9c1daf79ef061a3d1f4105d0ff3
MD5 62df21771969d503d14bf9446f3b5be0
BLAKE2b-256 8ee328ef7716cfbe920b5b0af065c18f8aff1f1b5ce4e3ddcab7faec63b6a0f8

See more details on using hashes here.

File details

Details for the file pylibrelinkup-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pylibrelinkup-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f3ff4d0ac11608496e729530444d4f6368d5d8bc899ac732ce1fcb2b13e236
MD5 12cce913158dce43e6becc323670b5b3
BLAKE2b-256 2c0b6be89532afdb359e21997ea7abdbcd9ff0466d1de8301101765c03a7e409

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page