{"id":27741,"library":"fitfile","title":"fitfile","description":"Python library for decoding and reading Garmin FIT file format data. Current version 1.2.0, no longer actively updated (use 'fitdecode' or 'garmin-fit' instead).","status":"maintenance","version":"1.2.0","language":"python","source_language":"en","source_url":"https://github.com/tcgoetz/Fit","tags":["fit","garmin","decode","fitness"],"install":[{"cmd":"pip install fitfile","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"FitFile","correct":"from fitfile import FitFile"},{"note":"","wrong":"","symbol":"FIT_TYPE","correct":"from fitfile import FIT_TYPE"}],"quickstart":{"code":"from fitfile import FitFile\n\nwith open('activity.fit', 'rb') as f:\n    fit = FitFile(f)\n    for record in fit.get_messages():\n        if record.name == 'record':\n            print(record.get('heart_rate', None))","lang":"python","description":"Open a FIT file and iterate over data messages."},"warnings":[{"fix":"pip install fitdecode then use from fitdecode import FitReader","message":"fitfile is no longer actively maintained. Consider using fitdecode or garmin-fit for new projects.","severity":"deprecated","affected_versions":"*"},{"fix":"messages = list(fit.get_messages())  # store once","message":"Common mistake: calling get_messages() multiple times re-reads the file. Must re-open or store list.","severity":"gotcha","affected_versions":"*"},{"fix":"Use Python 3.","message":"Removed Python 2 support. Requires Python >= 3.0","severity":"breaking","affected_versions":">=1.2.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use: from fitfile import FitFile","cause":"Wrong import path or version mismatch.","error":"ImportError: cannot import name 'FitFile'"},{"fix":"Ensure fitfile >= 1.0; use fit.get_messages() not FitFile.get_messages()","cause":"Trying to call get_messages on the wrong object or old version.","error":"AttributeError: 'FitFile' object has no attribute 'get_messages'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}