An open API service indexing awesome lists of open source software.

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.

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.