Skip to main content

Export Garmin Connect activities and wellness data to CSV/JSON.

Project description

garmin-exporter

Export your Garmin Connect activities (CSV), per-run km splits (CSV), and wellness metrics - sleep, HRV, VO2max, Training Status, plus your profile (age, sex, weight, height) and configured thresholds (LTHR, threshold pace) (JSON).

Install

The package is published on PyPI, so the recommended way to install it is with uv or pip:

# with uv (recommended)
uv tool install garmin-exporter

# or with pip
pip install garmin-exporter

Quickstart

# Show help
garmin-exporter --help

# Export activities to CSV + a year of wellness metrics (sleep, HRV, VO2max,
# profile, thresholds, ...) to JSON
garmin-exporter --wellness

# Shorter wellness window (e.g. last 30 days)
garmin-exporter --wellness --wellness-days 30

# Also add per-activity HR time-in-zones
garmin-exporter --hr-zones

# Write per-run km splits to activities.splits.csv
garmin-exporter --splits

On the first run it asks for your Garmin email, password, and MFA code (if enabled), then stores the session token in your OS keyring - the password is never saved. Later runs reuse the session.

Options

Flag Description
-o, --output Output CSV path (default: activities.csv)
--days-back N Only the last N days (default: all activities)
--activity-type T Garmin type key, e.g. running (default: all)
--wellness Also write <output>.wellness.json
--wellness-days N Days of wellness history with --wellness (default: 365)
--hr-zones Add per-activity HR time-in-zones (+1 call each)
--splits Write per-run km splits to <output>.splits.csv
--reset-login Forget the stored session and log in again

Development

The project uses Makefile for typical tasks:

  • make lint - Ruff check + mypy --strict
  • make format - Ruff format
  • make clean - Remove cache files

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

garmin_exporter-0.0.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garmin_exporter-0.0.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file garmin_exporter-0.0.3.tar.gz.

File metadata

  • Download URL: garmin_exporter-0.0.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for garmin_exporter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 83cfe6d854e77fbf8d49228ffc48f92e55184fabfb92383383e4f657bbb636dc
MD5 c17d2c525c813fcf3bbe5d45556ad764
BLAKE2b-256 4c4b70c36c7f7af3f96b8ac0ddf0196f7aa9081a2991e9afd296d5cde4850c66

See more details on using hashes here.

File details

Details for the file garmin_exporter-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: garmin_exporter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for garmin_exporter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18cc1bde9420cca698d225d91476159ea4c6e994faf092b00ebed84e8eee40fd
MD5 000dab7a560fe8707629e419ff4f5df3
BLAKE2b-256 f7c2bfcad440f9624f41de08ccb0e7a38e583a02acd2d21d9e41696a3246193f

See more details on using hashes here.

Supported by

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