A speed-optimized data extractor for .tcx (Garmin) files.
Can be installed using:
pip install tcx-extract
Then run this once to build the Zig executable:
import tcx_extract as tcx
tcx.build_zig()
import tcx_extract as tcx
watts = tcx.extract(filepath="example.tcx", tag_name="ns3:Watts")
print(watts)
# Output:
# ['402', '380', '304'...]
- By default, an item for every
<TrackPoint>
will be included in the resulting Python list. filepath
path to the .tcx file to extract from.tag_name
tag to get value from.- Nested or multiple tags are not currently supported.
Please create an issue if you're having an issue or have questions.