pylibrelinkup


Namepylibrelinkup JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryA client for the Abbott LibreLinkUp API
upload_time2024-09-27 08:49:29
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2024 Rob Berwick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords librelink librelinkup abbott diabetes glucose api client health medical blood-sugar continuous-glucose-monitoring cgm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/DiaKEM/libre-link-up-api-client) project.

## Installation

To install `pylibrelinkup`, you can use `pip`:

```bash
pip install pylibrelinkup
```

## Usage

### Initialization

First, you need to import the necessary modules, initialize the client, and authenticate with your LibreLinkUp credentials:

```python
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:

```python
patient_list = client.get_patient_list()
print(patient_list)
```

### Getting Patient data

Retrieve patient data using the `read` method:

```python
patient = client.get_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:

```python
latest_glucose = patient_data.current
print(latest_glucose)
```

Get the historical glucose data:

```python
historical_glucose = patient_data.history
print(historical_glucose)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pylibrelinkup",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "librelink, librelinkup, abbott, diabetes, glucose, api, client, health, medical, blood-sugar, continuous-glucose-monitoring, cgm",
    "author": null,
    "author_email": "Rob Berwick <rob.berwick@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6e/46/c71b3b1a157993ec0f87257ed94a25186dd328e4902bd73ecd031b3f0974/pylibrelinkup-0.2.0.tar.gz",
    "platform": null,
    "description": "# pylibrelinkup\n\n`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](https://github.com/DiaKEM/libre-link-up-api-client) project.\n\n## Installation\n\nTo install `pylibrelinkup`, you can use `pip`:\n\n```bash\npip install pylibrelinkup\n```\n\n## Usage\n\n### Initialization\n\nFirst, you need to import the necessary modules, initialize the client, and authenticate with your LibreLinkUp credentials:\n\n```python\nfrom pylibrelinkup.client import LibreLinkUpClient\n\nclient = LibreLinkUpClient(username='your_username', password='your_password')\nclient.authenticate()\n```\n\n### Getting Patient List\n\nYou can fetch the patient list using the `get_patient_list` method:\n\n```python\npatient_list = client.get_patient_list()\nprint(patient_list)\n```\n\n### Getting Patient data\n\nRetrieve patient data using the `read` method:\n\n```python\npatient = client.get_patient_list()[0]\npatient_data = client.read(patient_identifier=patient.patient_id)\n```\n\nThe `read` method accepts a `patient_identifier` parameter in the form of a `UUID`, `str`, or `Patient` object.\n\nGet the latest glucose data:\n\n```python\nlatest_glucose = patient_data.current\nprint(latest_glucose)\n```\n\nGet the historical glucose data:\n\n```python\nhistorical_glucose = patient_data.history\nprint(historical_glucose)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Rob Berwick  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A client for the Abbott LibreLinkUp API",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/robberwick/pylibrelinkup",
        "Issues": "https://github.com/robberwick/pylibrelinkup/issues"
    },
    "split_keywords": [
        "librelink",
        " librelinkup",
        " abbott",
        " diabetes",
        " glucose",
        " api",
        " client",
        " health",
        " medical",
        " blood-sugar",
        " continuous-glucose-monitoring",
        " cgm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "992303ce889cdfe24435c329589fb562f9207b3266463554ff065f9497c85521",
                "md5": "f526f52607dbd42e45a562418255f99a",
                "sha256": "efaff06536cee2875d6c59bf9e9f8c47169b6497744142c7b9bdf34ad8a89152"
            },
            "downloads": -1,
            "filename": "pylibrelinkup-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f526f52607dbd42e45a562418255f99a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 9793,
            "upload_time": "2024-09-27T08:49:27",
            "upload_time_iso_8601": "2024-09-27T08:49:27.408534Z",
            "url": "https://files.pythonhosted.org/packages/99/23/03ce889cdfe24435c329589fb562f9207b3266463554ff065f9497c85521/pylibrelinkup-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e46c71b3b1a157993ec0f87257ed94a25186dd328e4902bd73ecd031b3f0974",
                "md5": "24e408529ab763f20f5ae8bc8b6b9363",
                "sha256": "6e3abb787868721cc3aaebe5f2efaeb69ec121867d50dc23e40db604253b8ef6"
            },
            "downloads": -1,
            "filename": "pylibrelinkup-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "24e408529ab763f20f5ae8bc8b6b9363",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 14403,
            "upload_time": "2024-09-27T08:49:29",
            "upload_time_iso_8601": "2024-09-27T08:49:29.081251Z",
            "url": "https://files.pythonhosted.org/packages/6e/46/c71b3b1a157993ec0f87257ed94a25186dd328e4902bd73ecd031b3f0974/pylibrelinkup-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-27 08:49:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "robberwick",
    "github_project": "pylibrelinkup",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pylibrelinkup"
}
        
Elapsed time: 3.10084s