Registry / data / fitfile

fitfile

JSON →
library1.2.0pypypi✓ verified 81d ago

Python library for decoding and reading Garmin FIT file format data. Current version 1.2.0, no longer actively updated (use 'fitdecode' or 'garmin-fit' instead).

pip install fitfile
INSTALL
IMPORT
SIG · FITFILE
F
fitfile
datapythonv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

File
from fitfile import File
from fitfile import FitFile

Open a FIT file and iterate over data messages.

from fitfile import FitFile with open('activity.fit', 'rb') as f: fit = FitFile(f) for record in fit.get_messages(): if record.name == 'record': print(record.get('heart_rate', None))
Debug
Known issues
deprecatedfitfile is no longer actively maintained. Consider using fitdecode or garmin-fit for new projects.
fix
pip install fitdecode then use from fitdecode import FitReader
affects: *
gotchaCommon mistake: calling get_messages() multiple times re-reads the file. Must re-open or store list.
fix
messages = list(fit.get_messages())  # store once
affects: *
breakingRemoved Python 2 support. Requires Python >= 3.0
fix
Use Python 3.
affects: >=1.2.0
Upgrade
Version history
1.2.0latest on PyPI · released Mar 11, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
fitfile — pip install fitfile · libregistry