Skip to main content

Python 3 API wrapper for Garmin Connect

Project description

Python: Garmin Connect

image

Donate

Python 3 API wrapper for Garmin Connect to get your statistics.

NOTE: For developers using this package

From version 0.2.1 onwards, this package uses garth to authenticate and perform API calls.
This requires minor changes to your login code, look at the code in example.py or the reference.ipynb file how to do that.
It fixes a lot of stability issues, so it's well worth the effort!

About

This package allows you to request garmin device, activity and health data from your Garmin Connect account. See https://connect.garmin.com/

Installation

pip3 install garminconnect

Authentication

The library uses the same authentication method as the app using Garth. The login credentials generated with Garth are valid for a year to avoid needing to login each time.

Testing

The test files use the credential tokens created by example.py script, so use that first.

export GARMINTOKENS=~/.garminconnect
sudo apt install python3-pytest (needed some distros)

make install-test
make test

Development

The tests provide examples of how to use the library.
There is a Jupyter notebook called reference.ipynb provided here.
And you can check out the example.py code you can find here, you can run it like so:

pip3 install -r requirements-dev.txt
./example.py

Credits

:heart: Special thanks to all people contibuted, either by asking questions, reporting bugs, coming up with great ideas, or even by creating whole Pull Requests to add new features! This project deserves more attention, but I'm struggling to free up time sometimes, so thank you for your patience too!

Donations

Donate

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

garminconnect-0.2.5.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

garminconnect-0.2.5-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file garminconnect-0.2.5.tar.gz.

File metadata

  • Download URL: garminconnect-0.2.5.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for garminconnect-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b5cc6aa3e225b8eda732414065b235b8a889feae6b2c4aadf520c42fd14628b4
MD5 4537e65ce73c1c603f0ed9ab2dbc6432
BLAKE2b-256 5ed8d0b6681111554c845a0207f737843ada6e9443c7e252fa5c052609e5db4d

See more details on using hashes here.

File details

Details for the file garminconnect-0.2.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for garminconnect-0.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6edef34c4596447faa03e0770e9f75d20ad563b842c5cc1eda2cc63e5027c1c
MD5 cc88cd29e2c0caa7eb121aed2e3bc2bb
BLAKE2b-256 e98336f1f3185bcf990a878cb938e8ff71654c826a3be3a7490135b00b58f48e

See more details on using hashes here.

Supported by

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