A library for reading and writing Garmin FIT files.
Actively maintained. Last release 10 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install fit-toolNote: This is a community-maintained fork. The original package was removed from PyPI by its author and cannot be restored. This repository continues development and publishing under the same package name.
A Python library for reading and writing Garmin FIT files — practical for common Activity, Workout, and Course workflows.
What works / what we do not claim (capability matrix, validation levels,
encode policies): docs/CAPABILITY_BOUNDARY.md.
Long-term strict-conformance roadmap (target architecture, not current
guarantees): docs/FIT_CONFORMANCE_DESIGN.md.
Profile in use: 21.222.0 (fit_tool.SDK_VERSION).
Installation
Runtime has no third-party dependencies.
uv add fit-tool
# or
python3 -m pip install --upgrade fit-tool
Optional profile regeneration (maintainers only):
uv add 'fit-tool[gen]' # openpyxl, inflection, jinja2
uv run gen-profile
CLI
fit-tool activity.fit # → CSV
fit-tool -t fit -o out.fit in.fit
fit-tool -h
Public API
Import the stable surface from the package root:
from fit_tool import (
FitFile,
FitFileBuilder,
EncodeMode,
EncodeOptions,
ConformanceLevel,
ProfileScope,
validate_fit_file,
FitError,
FitParseError,
FitCRCError,
FitValidationError,
PROTOCOL_VERSION,
SDK_VERSION,
)
| Symbol | Role |
|---|---|
FitFile | Load, inspect, stream, serialize, validate |
FitFileBuilder | Build FIT files from messages |
EncodeMode / EncodeOptions | PRESERVE vs CANONICAL encode policies |
validate_fit_file / ConformanceLevel / ProfileScope | Composable validation |
| and subclasses |