Skip to main content

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. Build Status

Install from PyPI:

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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-fitparse 2.5.0
File Size Uploaded
python_fitparse-2.5.0.tar.gz 98.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-fitparse 2.5.0
File Interpreter ABI Platform
python_fitparse-2.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 192.8 kB

Release files / python_fitparse-2.5.0.tar.gz

Download URL python_fitparse-2.5.0.tar.gz
Size 98.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c3f69916bced6e803655261fb9d66036361f42dcaeb8c15cf7649aca4eff33d0
BLAKE2b-256 checksum
How to use checksums
9fd9cb9b89bf4b7e0ec7d23169a9a1a84f96995f98961f3992dbc52b7a004b80
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 Aug 26, 2026.

Transparency log

Release files / python_fitparse-2.5.0-py3-none-any.whl

Download URL python_fitparse-2.5.0-py3-none-any.whl
Size 93.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8c94c48447b5e63a1accf9ced4289702436e488186dc1ba26d0097767fcbbcb
BLAKE2b-256 checksum
How to use checksums
fd75c2c81d7c515206968208b837c91164856dfb16eacc285183ceafcebd55fe
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 Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

2.7.0

2 release files

2.6.0

2 release files

This release

2.5.0 This release

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.7

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page