You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ $ ./example.py
9
9
Select a category:
10
10
11
11
[1] 👤 User & Profile
12
-
[2] 📊 Daily Health & Activity
12
+
[2] 📊 Daily Health & Activity
13
13
[3] 🔬 Advanced Health Metrics
14
14
[4] 📈 Historical Data & Trends
15
15
[5] 🏃 Activities & Workouts
@@ -22,7 +22,7 @@ Select a category:
22
22
23
23
[q] Exit program
24
24
25
-
Make your selection:
25
+
Make your selection:
26
26
```
27
27
28
28
### API Coverage Statistics
@@ -59,7 +59,7 @@ A comprehensive Python 3 API wrapper for Garmin Connect, providing access to hea
59
59
This library enables developers to programmatically access Garmin Connect data including:
60
60
61
61
-**Health Metrics**: Heart rate, sleep, stress, body composition, SpO2, HRV
62
-
-**Activity Data**: Workouts, exercises, training status, performance metrics
62
+
-**Activity Data**: Workouts, exercises, training status, performance metrics
63
63
-**Device Information**: Connected devices, settings, alarms, solar data
64
64
-**Goals & Achievements**: Personal records, badges, challenges, race predictions
65
65
-**Historical Data**: Trends, progress tracking, date range queries
@@ -146,7 +146,7 @@ pdm run --list # Display all available PDM scripts
146
146
# Before making changes
147
147
pdm run lint # Check current code quality
148
148
149
-
# After making changes
149
+
# After making changes
150
150
pdm run format # Auto-format your code
151
151
pdm run lint # Verify code quality
152
152
pdm run codespell # Check spelling
@@ -161,7 +161,7 @@ The library uses the same OAuth authentication as the official Garmin Connect ap
161
161
162
162
**Key Features:**
163
163
- Login credentials valid for one year (no repeated logins)
164
-
- Secure OAuth token storage
164
+
- Secure OAuth token storage
165
165
- Same authentication flow as official app
166
166
167
167
**Advanced Configuration:**
@@ -195,7 +195,7 @@ pdm run testcov # Run tests with coverage report
195
195
196
196
**Note:** Tests automatically use `~/.garminconnect` as the default token file location. You can override this by setting the `GARMINTOKENS` environment variable. Run `example.py` first to generate authentication tokens for testing.
197
197
198
-
**For Developers:** Tests use VCR cassettes to record/replay HTTP interactions. If tests fail with authentication errors, ensure valid tokens exist in `~/.garminconnect`
198
+
**For Developers:** Tests use VCR cassettes to record/replay HTTP interactions. If tests fail with authentication errors, ensure valid tokens exist in `~/.garminconnect`
Copy file name to clipboardExpand all lines: pyproject.toml
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ line-length = 88
92
92
target-version = "py310"
93
93
exclude = [
94
94
".git",
95
-
".venv",
95
+
".venv",
96
96
"__pycache__",
97
97
".pytest_cache",
98
98
"build",
@@ -151,6 +151,12 @@ testcov = {composite = ["test", "pdm run coverage html", "pdm run coverage xml -
151
151
codespell = "pre-commit run codespell --all-files"
152
152
clean = "python -c \"import shutil, pathlib; [shutil.rmtree(p, ignore_errors=True) for p in pathlib.Path('.').rglob('__pycache__')]; [p.unlink(missing_ok=True) for p in pathlib.Path('.').rglob('*.py[co]')]\""
153
153
154
+
# Pre-commit hooks
155
+
pre-commit-install = "pre-commit install"
156
+
pre-commit-run = "pre-commit run --all-files"
157
+
pre-commit-run-staged = "pre-commit run"
158
+
pre-commit-update = "pre-commit autoupdate"
159
+
154
160
# Publishing
155
161
build = "pdm build"
156
162
publish = {composite = ["build", "pdm publish"]}
@@ -160,8 +166,8 @@ record-vcr = {env = {GARMINTOKENS = "~/.garminconnect"}, cmd = "pdm run pytest t
0 commit comments