fietsboek.convert module¶
Conversion functions to convert between various recording formats.
- fietsboek.convert.from_fit(data)¶
Reads a .fit as GPX data.
This uses the fitparse library under the hood.
- Parameters:
data (
bytes
) – The input bytes.- Return type:
GPX
- Returns:
The converted structure.
- fietsboek.convert.smart_convert(data)¶
Tries to be smart in converting the input bytes.
This function automatically applies the correct conversion if possible.
Note that this function is not guaranteed to return valid GPX bytes. In the worst case, invalid bytes are simply passed through.