python-fitparse
NOTE: This is a fork of dtcooper/python-fitparse. The original maintainer has limited time to work on this package. This fork continues active development with support for new FIT SDK versions and patches.
Here's a Python library to parse ANT/Garmin .FIT files.
pip install python-fitparse
Usage
A simple example of printing records from a fit file:
import fitparse
# Load the FIT file
fitfile = fitparse.FitFile("my_activity.fit")
# Iterate over all messages of type "record"
# (other types include "device_info", "file_creator", "event", etc)
for record in fitfile.get_messages("record"):
# Records can contain multiple pieces of data (ex: timestamp, latitude, longitude, etc)
for data in record:
# Print the name and value of the data (and the units if it has any)
if data.units:
print(" * {}: {} ({})".format(data.name, data.value, data.units))
else:
print(" * {}: {}".format(data.name, data.value))
print("---")
The library also provides a fitdump command-line tool for parsing FIT files. Run fitdump --help for details.
License
This project is licensed under the MIT License - see the LICENSE
file for details.
Metadata
Release files for python-fitparse 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_fitparse-2.6.0.tar.gz | 106.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_fitparse-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 209.3 kB
Release files / python_fitparse-2.6.0.tar.gz
| Download URL | python_fitparse-2.6.0.tar.gz |
|---|---|
| Size | 106.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d104f7fcf4363ec23e16095e137e2641f40bdceb5bff901e0b08521022003c5
|
|
BLAKE2b-256 checksum How to use checksums |
84ccb687625805aaf26e47d23a807e0df537babe44dddef6420349504638431e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / python_fitparse-2.6.0-py3-none-any.whl
| Download URL | python_fitparse-2.6.0-py3-none-any.whl |
|---|---|
| Size | 102.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82d33c3d308f1b4a6f70bcb00c5863e73c0031dd5255e5ae1146a4d4b7193eb2
|
|
BLAKE2b-256 checksum How to use checksums |
e03dd8165a48549a2f74c48e35170669932f5642a0ac61aed98d0f527ca86541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency log