Skip to main content

FIT file I/O

Project description

The Flexible and Interoperable Data Transfer (FIT) protocol is a format designed specifically for the storing and sharing of data that originates from sport, fitness and health devices. It is specifically designed to be compact, interoperable and extensible. This document will describe the FIT file structure and interpretation.

The FIT protocol defines a set of data storage templates (FIT messages) that can be used to store information such as user profiles and activity data in files. Any FIT-compliant device can interpret a FIT file from any other FIT-compliant device.

How-To

from fit import FitFile
from fit.files.activity import ActivityFile
from fit.messages.common import FileCreator


fin = FitFile.open("path/to/filename.fit")
for msg in fin:
    print msg

with FitFile.open("path/to/copy.fit", mode="w") as fout:
    fout.copy(fin)

fnew = ActivityFile.create("path/to/new.fit")
fnew.append(FileCreator(software_version=666))
fnew.write()
fnew.close()

TODO

  • Component fields

  • Accumulatable fields

  • Tests (you can submit me some cool examples)

  • Entry Points for external extensions

  • Convertable types

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fit-0.4.1.tar.gz (22.5 kB view details)

Uploaded Source

File details

Details for the file fit-0.4.1.tar.gz.

File metadata

  • Download URL: fit-0.4.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fit-0.4.1.tar.gz
Algorithm Hash digest
SHA256 4bacbab30420ac6fd368ce52b7626ba23ed7cabfe583e33fd5821d7cfd055b7c
MD5 ffcd9636a9a71e730a61d896bbdd3409
BLAKE2b-256 1783ca9ec69b139d95d808654989b5bf67f11c84aaa82b037517602cf7d7658e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page