What is fitdecode and how does it differ from fitparse?
masterfitdecode is a Python (>= 3.6) library for parsing and decoding FIT files. It is a rewrite of the fitparse_ library designed for improved performance and thread-safety.
Key features and differences from fitparse:
- Performance: Faster execution and optimized memory usage.
- Thread-safety: Objects keep state locally, allowing concurrent reading of multiple streams.
- Complete Stream Representation: Unlike
fitparse,fitdecodedoes not discard the FIT header or CRC footer, providing a 1:1 representation of the stream. This makes it easier to handle chained (concatenated) FIT files. - Flexible CRC Handling: CRC computation and matching are optional. You can match CRC, only compute it, or ignore it entirely for faster reading.
- Binary Access: Provides optional access to records, headers, and footers in their binary form, enabling binary-level cutting, stitching, and filtering.