fitdecode
FIT file parser and decoder
What it is and what it does
fitdecode is a Python library for reading and decoding FIT files—the binary format used by Garmin devices and ANT+ sensors to store fitness and activity data. It provides frame-by-frame parsing via a FitReader context manager, yielding typed objects (headers, definition messages, data messages, CRC footers) that preserve the complete structure of the input file. The library also includes command-line utilities (fitjson and fittxt) to convert FIT files to JSON or text format for inspection and debugging.
Unlike its predecessor fitparse, fitdecode prioritizes thread-safety, speed, and memory efficiency. It retains FIT headers and CRC footers in the output, supports optional CRC validation, and can handle chained (concatenated) FIT files. It also offers binary-level access to records for advanced use cases like file cutting and stitching. The package has no runtime dependencies and installs as a pure Python wheel.
Use it for:
- Extract workout metrics (distance, heart rate, cadence) from Garmin device FIT files for analysis or logging.
- Convert FIT files to JSON for integration with web services or data pipelines.
- Debug malformed or non-standard FIT files using human-readable text output.
- Process multiple FIT streams concurrently in a multi-threaded application.
- Validate FIT file integrity and structure before downstream processing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and decodes FIT files (Garmin's ANT+ fitness data format) into Python objects, with command-line tools to convert FIT to JSON or human-readable text.
Yes, if you need to parse Garmin FIT files. The package is mature (Beta status since 2018), has no dependencies, installs easily, and covers current Python versions. Maintenance is aging (373 days since last release), but the repository is active and recent updates addressed SDK profile upgrades and edge cases. No known security vulnerabilities. The only caveat is that if you need cutting-edge FIT SDK features, verify that v21.171.0 covers your use case.
Install
fitdecode on PyPI
pip
pip install fitdecodeuv
uv add fitdecodepoetry
poetry add fitdecodeInstalling fitdecode
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance status is aging—last release was 373 days ago—but the repository remains active and the package supports current Python versions (3.6 through 3.13).
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects without restriction.
Quickstart
import fitdecode
with fitdecode.FitReader('file.fit') as fit:
for frame in fit:
if frame.frame_type == fitdecode.FIT_FRAME_DATA:
print(frame.name)
Requires Python >= 3.6; FIT file must be a valid Garmin FIT format file.
Verify before relying
- Whether thread-safety guarantees hold across all concurrent access patterns in production use.
- Performance characteristics (speed and memory usage improvements over fitparse) under typical workloads.
- Completeness of FIT SDK profile v21.171.0 coverage for all Garmin device types.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 373 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,811/month — #12,782 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fitdecode-0.11.0-py3-none-any.whl
Keywords: fit, fitparse, ant, file, parse, parser, decode, decoder
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
fitparseParses ANT/Garmin .FIT binary files, extracting…
permissive · top 15,000 on PyPI
garmin-fit-sdkDecodes Garmin FIT (Flexible and Interoperable…
unclear · top 15,000 on PyPI
fit-toolReads and writes Garmin FIT files for Activity,…
permissive · top 15,000 on PyPI
ha-garminPython client for the Garmin Connect API with…
permissive · top 15,000 on PyPI
garminconnectPython wrapper for the Garmin Connect API that…
permissive · top 15,000 on PyPI
garthGarth provides Python access to Garmin Connect…
permissive · top 15,000 on PyPI
java-manifestEncode and decode Java's META-INF/MANIFEST.MF…
unclear · top 15,000 on PyPI
x690Encodes and decodes data using the X.690 BER…
permissive · top 15,000 on PyPI
ldfparserParses LIN Description Files (LDF) to extract…
permissive · top 5,000 on PyPI
hyperframehyperframe decodes binary HTTP/2 frame streams…
permissive · top 1,000 on PyPI