Skip to main content

Garpyclient: Basic library for authenticating and querying Garmin Connect

PyPI-Status Tests Coveralls

garpyclient is a simple library to communicate with Garmin Connect. It was extracted from garpy and the idea is for this to become the core client library of it in a next iteration. Ideally, garpyclient is intended to be used by other python libraries that want to download their data from Garmin Connect. It is kept simple on purpose so that end users can build upon it with their own workflows. As an example, the following code will fetch the latest activity from your Garmin profile:

from garpyclient import GarminClient

with GarminClient(username="user", password="pass") as client:
    activities = client.list_activities()
    response = client.get_activity(activities[0]["activityId"], fmt="original")

The file content will be found in response.content. The format of the file will depend on the parameter fmt to which you can pass the following values:

  • For an overview of the activities: summary or details
  • For data points of the activity: gpx, tcx, original (usually fit format) and kml.

Installation

garpyclient requires Python 3.7 or higher on your system. Install with pip as follows:

    pip install -U garpyclient

If you are new to Python, I recommend you install Miniconda. To my knowledge, it is the simplest way of installing a robust and lightweight Python environment.

Acknowledgements

The original library (garpy) is based on garminexport. I borrowed the GarminClient, refactored it to my taste and created a package from it.

Metadata

Release files for garpyclient 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for garpyclient 0.1.1
File Size Uploaded Provenance Actions
garpyclient-0.1.1.tar.gz 9.8 kB Without provenance Details for garpyclient-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for garpyclient 0.1.1
File Interpreter ABI Platform Actions
garpyclient-0.1.1-py3-none-any.whl Python 3 none any Details for garpyclient-0.1.1-py3-none-any.whl

Total release size: 20.4 kB

Release files / garpyclient-0.1.1.tar.gz

Download URL garpyclient-0.1.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0251e47d217736b087ea31221f8d45f0e96b3757143bd784d551d44009598f3b
BLAKE2b-256 checksum
How to use checksums
8f3f3b280fe134fecd8534860bb4258018cf15da8850ee1af8fe3d369f4cb17e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Linux/5.15.0-56-generic

Release files / garpyclient-0.1.1-py3-none-any.whl

Download URL garpyclient-0.1.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ae2bfbbc45360081ff183e990a47c70b5c04aac14624c11ed9e5e543bf699cf
BLAKE2b-256 checksum
How to use checksums
c0b030d701c9783b19442e081341d0275cc9e7d3530636495f5c4ab2efa89a5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Linux/5.15.0-56-generic

Security for garpyclient 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page