Python library to parse ANT/Garmin .FIT files
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_fitparse-2.1.7.tar.gz.
File metadata
- Download URL: python_fitparse-2.1.7.tar.gz
- Upload date:
- Size: 98.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d1b31d2cbe8599d083fc693863914f5afd757f8ef6d4291c489fea025bcb9c
|
|
| MD5 |
7b1084838cbc5d11526a4a808cc77d68
|
|
| BLAKE2b-256 |
2cc2dfbc03484bf4f788bcabd70435b6c4755024e626c8e6f2cdbe70790f5266
|
Provenance
The following attestation bundles were made for python_fitparse-2.1.7.tar.gz:
Publisher:
main.yml on nbr23/python-fitparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_fitparse-2.1.7.tar.gz -
Subject digest:
a6d1b31d2cbe8599d083fc693863914f5afd757f8ef6d4291c489fea025bcb9c - Sigstore transparency entry: 1576580926
- Sigstore integration time:
-
Permalink:
nbr23/python-fitparse@cb628a8d7ed978031be8190f60d91285058356d8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/nbr23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@cb628a8d7ed978031be8190f60d91285058356d8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_fitparse-2.1.7-py3-none-any.whl.
File metadata
- Download URL: python_fitparse-2.1.7-py3-none-any.whl
- Upload date:
- Size: 93.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23e26353e1c00ad058816c8c4d51df70a6b70b8f5f9bbc016a21a422503b010d
|
|
| MD5 |
c0b272c1f940bfb8093cebea2e5faa04
|
|
| BLAKE2b-256 |
1a21003d28020a391dd8bd2dad853f2376fd7d7e619e64980e71f9dcffd116f8
|
Provenance
The following attestation bundles were made for python_fitparse-2.1.7-py3-none-any.whl:
Publisher:
main.yml on nbr23/python-fitparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_fitparse-2.1.7-py3-none-any.whl -
Subject digest:
23e26353e1c00ad058816c8c4d51df70a6b70b8f5f9bbc016a21a422503b010d - Sigstore transparency entry: 1576581046
- Sigstore integration time:
-
Permalink:
nbr23/python-fitparse@cb628a8d7ed978031be8190f60d91285058356d8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/nbr23
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@cb628a8d7ed978031be8190f60d91285058356d8 -
Trigger Event:
push
-
Statement type: