https://github.com/alhankeser/tcx-extract
Speed-optimized data extractor for .tcx (Garmin) files.
https://github.com/alhankeser/tcx-extract
data-extraction garmin python tcx zig ziglang
Last synced: about 2 months ago
JSON representation
Speed-optimized data extractor for .tcx (Garmin) files.
- Host: GitHub
- URL: https://github.com/alhankeser/tcx-extract
- Owner: alhankeser
- License: mit
- Created: 2024-03-06T06:38:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T08:26:33.000Z (over 2 years ago)
- Last Synced: 2025-08-26T08:52:21.145Z (10 months ago)
- Topics: data-extraction, garmin, python, tcx, zig, ziglang
- Language: Zig
- Homepage:
- Size: 1.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TCX Extractor
A speed-optimized data extractor for .tcx (Garmin) files.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Support](#support)
## Installation
Can be installed using:
```bash
pip install tcx-extract
```
Then run this once to build the Zig executable:
```python
import tcx_extract as tcx
tcx.build_zig()
```
## Usage
```python
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 `` 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.
## Support
Please [create an issue](https://github.com/alhankeser/tcx-extract/issues/new) if you're having an issue or have questions.