Phase 0: mygarmin package — library, importers, dedupe, dashboard, exports, CLI

Generalised from personal scripts: SQLite library with untouched originals, importers for FIT, TCX,
GPX, AlpineQuest .trk, Strava and Garmin Connect exports, the Garmin Connect API and a USB watch;
cross-source de-duplication; time zones from GPS; data-driven dashboard and GPX/.trk exports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-17 12:35:08 +02:00
commit 1075698321
25 changed files with 1428 additions and 0 deletions

27
pyproject.toml Normal file
View File

@@ -0,0 +1,27 @@
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "mygarmin"
version = "0.1.0"
description = "Local-first activity and health logbook for Garmin, Strava and AlpineQuest data"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["fitparse>=1.2", "timezonefinder>=6"]
[project.optional-dependencies]
api = ["garminconnect>=0.3.19", "curl_cffi"]
dev = ["pytest"]
[project.scripts]
mygarmin = "mygarmin.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
mygarmin = ["report/*.html"]
[tool.pytest.ini_options]
testpaths = ["tests"]