Python 3 API wrapper for Garmin Connect
Project description
Python: Garmin Connect
Python 3 API wrapper for Garmin Connect to get your statistics.
About
This package allows you to request your activity and health data you gather on Garmin Connect. See https://connect.garmin.com/
Installation
pip install garminconnect
Usage
from datetime import date
from garminconnect import (
Garmin,
GarminConnectConnectionError,
GarminConnectTooManyRequestsError,
GarminConnectAuthenticationError,
)
today = date.today()
_LOGGER = logging.getLogger(__name__)
"""Login to portal using specified credentials"""
try:
client = Garmin(YOUR_EMAIL, YOUR_PASSWORD)
except (
GarminConnectConnectionError,
GarminConnectAuthenticationError,
GarminConnectTooManyRequestsError,
) as err:
print("Error occured during Garmin Connect Client setup: %s", err)
return
except Exception: # pylint: disable=broad-except
print("Unknown error occured during Garmin Connect Client setup")
return
"""Get Full name"""
print(client.get_full_name('2020-01-04'))
"""Get Unit system"""
print(client.get_unit_system('2020-01-04'))
"""Fetch your activities data"""
print(client.get_stats('2020-01-04'))
"""Fetch your logged heart rates"""
print(client.get_heart_rates('2020-01-04'))
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.1.7.tar.gz
(3.9 kB
view details)
File details
Details for the file garminconnect-0.1.7.tar.gz
.
File metadata
- Download URL: garminconnect-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2c07320d26a0fb72dabbfae2214572cdaad36f5576bc3bfa4e017ad0b83580f6
|
|
MD5 |
3451723bce92fea7e7c802964c1447dd
|
|
BLAKE2b-256 |
ca9c8f30fd3fba39d1dd69538fcf6ae03b83e518354aa23f959eab04924b4d3d
|