Skip to content

Commit 41bfc07

Browse files
authored
Merge pull request #56 from lahovniktadej/main
Improved readme.
2 parents a60cd81 + c0a9f16 commit 41bfc07

1 file changed

Lines changed: 72 additions & 34 deletions

File tree

README.md

Lines changed: 72 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,62 @@
1-
<div width="200" style="background-color: white; width: 200px">
2-
<img width="200" style="margin-bottom:-8px" src="https://raw.githubusercontent.com/alenrajsp/tcxreader/main/.github/logo/logo-white-background.png">
3-
</div>
4-
5-
**tcxreader** is a reader for Garmin's TCX file format. It also works well with missing data!
6-
7-
---
8-
9-
[![PyPI Version](https://img.shields.io/pypi/v/tcxreader.svg)](https://pypi.python.org/pypi/tcxreader)
10-
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tcxreader.svg)
11-
![PyPI - Downloads](https://img.shields.io/pypi/dm/tcxreader.svg)
12-
[![Downloads](https://pepy.tech/badge/tcxreader)](https://pepy.tech/project/tcxreader)
13-
![GitHub repo size](https://img.shields.io/github/repo-size/alenrajsp/tcxreader?style=flat-square)
14-
[![GitHub license](https://img.shields.io/github/license/alenrajsp/tcxreader.svg)](https://github.com/alenrajsp/tcxreader/blob/master/LICENSE)
15-
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/alenrajsp/tcxreader.svg)
16-
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/alenrajsp/tcxreader.svg)](http://isitmaintained.com/project/alenrajsp/tcxreader "Average time to resolve an issue")
17-
[![Percentage of issues still open](http://isitmaintained.com/badge/open/alenrajsp/tcxreader.svg)](http://isitmaintained.com/project/alenrajsp/tcxreader "Percentage of issues still open")
18-
[![All Contributors](https://img.shields.io/github/all-contributors/alenrajsp/tcxreader?color=ee8449&style=flat-square)](#contributors)
19-
[![DOI](https://zenodo.org/badge/317671425.svg)](https://zenodo.org/doi/10.5281/zenodo.10940281)
20-
21-
## Objective
1+
<p align="center">
2+
<img width="200" style="margin-bottom:-8px" src="https://raw.githubusercontent.com/alenrajsp/tcxreader/main/.github/logo/logo-white-background.png">
3+
</p>
4+
5+
<h2 align="center">
6+
Reader for Garmin's TCX file format
7+
</h2>
8+
9+
<p align="center">
10+
<a href="https://pypi.python.org/pypi/tcxreader">
11+
<img alt="PyPI Version" src="https://img.shields.io/pypi/v/tcxreader.svg" />
12+
</a>
13+
<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/tcxreader.svg" />
14+
<img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/tcxreader.svg" />
15+
<a href="https://pepy.tech/project/tcxreader">
16+
<img alt="Downloads" src="https://pepy.tech/badge/tcxreader" />
17+
</a>
18+
<a href="https://github.com/alenrajsp/tcxreader/actions/workflows/test.yml">
19+
<img alt="tcxreader" src="https://github.com/alenrajsp/tcxreader/actions/workflows/test.yml/badge.svg">
20+
</a>
21+
</p>
22+
23+
<p align="center">
24+
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/alenrajsp/tcxreader" />
25+
<a href="https://github.com/alenrajsp/tcxreader/blob/master/LICENSE">
26+
<img alt="GitHub license" src="https://img.shields.io/github/license/alenrajsp/tcxreader.svg" />
27+
</a>
28+
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/w/alenrajsp/tcxreader.svg" />
29+
<a href='http://isitmaintained.com/project/alenrajsp/tcxreader "Average time to resolve an issue"'>
30+
<img alt="Average time to resolve an issue" src="http://isitmaintained.com/badge/resolution/alenrajsp/tcxreader.svg" />
31+
</a>
32+
<a href='http://isitmaintained.com/project/alenrajsp/tcxreader "Percentage of issues still open"'>
33+
<img alt="Percentage of issues still open" src="http://isitmaintained.com/badge/open/alenrajsp/tcxreader.svg" />
34+
</a>
35+
<a href="#-contributors">
36+
<img alt="All Contributors" src="https://img.shields.io/github/all-contributors/alenrajsp/tcxreader?color=ee8449" />
37+
</a>
38+
</p>
39+
40+
<p align="center">
41+
<a href="https://zenodo.org/doi/10.5281/zenodo.10940281">
42+
<img alt="DOI" src="https://zenodo.org/badge/317671425.svg" />
43+
</a>
44+
</p>
45+
46+
<p align="center">
47+
<a href="#-objective">🎯 Objective</a> •
48+
<a href="#-features">✨ Features</a> •
49+
<a href="#-installation">📦 Installation</a> •
50+
<a href="#-usage">🚀 Usage</a> •
51+
<a href="#-classes-explanation">🔍 Classes explanation</a> •
52+
<a href="#-missing-data-handling">🚨 Missing data handling</a> •
53+
<a href="#-datasets">💾 Datasets</a> •
54+
<a href="#-related-packagesframeworks">🔗 Related packages/frameworks</a> •
55+
<a href="#-license">🔑 License</a> •
56+
<a href="#-contributors">🫂 Contributors</a>
57+
</p>
58+
59+
## 🎯 Objective
2260

2361
This is a simple TCX reader which can read Garmin TCX file extension files. The following data is currently parsed: longitude,
2462
latitude, elevation, time, distance, hr_value, cadence, watts, TPX_speed (extension). The following statistics are
@@ -29,17 +67,17 @@ GitHub requests appreciated.
2967
[pypi](https://pypi.org/project/tcxreader/)
3068
[github](https://github.com/alenrajsp/tcxreader)
3169

32-
## Features
70+
## Features
3371

3472
Allows parsing / reading of TCX files.
3573

36-
## Installation
74+
## 📦 Installation
3775

3876
```
3977
pip install tcxreader
4078
```
4179

42-
## Example
80+
## 🚀 Usage
4381

4482
An example on how to use the package is shown below.
4583

@@ -91,7 +129,7 @@ trackpoints = {list: 486} [TCXTrackpoint]
91129
tpx_ext = {dict: 2} {'Speed': 0.7459999918937683, 'RunCadence': 58}
92130
"""
93131
```
94-
## Classes explanation
132+
## 🔍 Classes explanation
95133

96134
Below figure explains the classes of **tcxreader** and the data they contain.
97135

@@ -176,7 +214,7 @@ All tags are recorded in the **TCXLap** **lx_ext** dictionary
176214
<img width="100%" style="margin-bottom:-8px" src="https://raw.githubusercontent.com/alenrajsp/tcxreader/7c9af6dc88f9d83a8c6751b454f118220ecfd9a1/.github/images/data-explanation.svg">
177215
</div>
178216

179-
## Missing data handling
217+
## 🚨 Missing data handling
180218
Due to the nature of the TCX file format, some data may be missing. The **tcxreader** can handle this in two ways:
181219
1) If data is missing at a TCX point it is set to **None**. (*default*)
182220
- tcx_reader.read(file_location) (*default*)
@@ -188,29 +226,29 @@ Due to the nature of the TCX file format, some data may be missing. The **tcxrea
188226

189227
This behavior can be set in **TCXReader.read()** method by the **null_value_handling** parameter, where either **int** value or **NullValueHandling** enum can be passed.
190228

191-
## Datasets
229+
## 💾 Datasets
192230

193231
Datasets available and used in the examples on the following links: [DATASET1](http://iztok-jr-fister.eu/static/publications/Sport5.zip), [DATASET2](http://iztok-jr-fister.eu/static/css/datasets/Sport.zip), [DATASET3](https://github.com/firefly-cpp/tcx-test-files).
194232

195-
## License
196-
197-
This package is distributed under the MIT License. This license can be found online
198-
at [http://www.opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT).
199-
200-
## Related packages/frameworks
233+
## 🔗 Related packages/frameworks
201234

202235
[1] [sport-activities-features: A minimalistic toolbox for extracting features from sports activity files written in Python](https://github.com/firefly-cpp/sport-activities-features)
203236

204237
[2] [AST-Monitor: A wearable Raspberry Pi computer for cyclists](https://github.com/firefly-cpp/AST-Monitor)
205238

206239
[3] [TCXReader.jl: Julia package designed for parsing TCX files](https://github.com/firefly-cpp/TCXReader.jl)
207240

241+
## 🔑 License
242+
243+
This package is distributed under the MIT License. This license can be found online
244+
at [http://www.opensource.org/licenses/MIT](http://www.opensource.org/licenses/MIT).
245+
208246
## Disclaimer
209247

210248
This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it
211249
at your own risk!
212250

213-
## Contributors
251+
## 🫂 Contributors
214252

215253
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
216254
<!-- prettier-ignore-start -->

0 commit comments

Comments
 (0)