Skip to main content

Python library to parse ANT/Garmin .FIT files

Project description

Welcome to the rewrite for the next generation (ng) of python-fitparse.

Here’s a preview of what’s to come. Any and all feedback is welcome.

WARNING: This is a WIP considered HIGHLY unstable. You want to use the master branch for now.

Major Changes

  • New, hopefully cleaner public API with a clear division between accessible and internal parts. (Still unstable and partially complete.)

  • Proper documentation! [Available here](http://dtcooper.github.com/python-fitparse/).

  • Unit tests and example programs.

  • (WIP) Command line tools (eg a .FIT to .CSV converter).

  • Component fields and compressed timestamp headers now supported and not just an afterthought. Closes issues #6 and #7.

  • FIT file parsing is generic enough to support all types. Going to have specific FitFile subclasses for more popular file types like activities.

  • (WIP) Converting field types to normalized values (for example, bool, date_time, etc) done in a consistent way, that’s easy to customize by subclassing the converter class. I’m going to use something like the Django form-style convert_<field name> idiom on this class.

  • The FIT profile is its own complete python module, rather than using profile.def.

  • A working setup.py module. Closes issue #2, finally! I’ll upload the package to [PyPI](http://pypi.python.org/) when it’s done.

  • Support for parsing one record at a time. This can be done using <FitFile>.parse_one() for now, but I’m not sure of the exact implementation yet.

License

This software is offered under a slightly modified ISC-style license.

Copyright (c) 2011-2013, David Cooper <dave@kupesoft.com> All rights reserved.

Dedicated to Kate Lacey

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice, the above dedication, and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

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

fitparse-1.0.0.tar.gz (25.6 kB view details)

Uploaded Source

File details

Details for the file fitparse-1.0.0.tar.gz.

File metadata

  • Download URL: fitparse-1.0.0.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fitparse-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8875b0f9eb95a58099d79d58fbd381f2b9db39e406b55f4b82f86f2f9ac2bd73
MD5 e2317a24c8d551ad3896280eb95b2ebc
BLAKE2b-256 135a2df85cf8d69fe0864c907c5b2304179cf9f28d6c89525465df973e8c29f3

See more details on using hashes here.

Supported by

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