skip to navigation
skip to content

python-tcxparser 0.7.1

Simple parser for Garmin TCX files

# python-tcxparser

[ ![Codeship Status for vkurup/python-tcxparser](](

python-tcxparser is a minimal parser for Garmin’s TCX file format. It is not in any way exhaustive. It extracts just enough data to allow me to post data from my Garmin ForeRunner 410 watch to [DailyMile’s]( API.

Data extracted:
  • latitude & longitude of start point of workout
  • type of workout (running, walking, etc)
  • time of completion of workout (in ISO UTC)
  • distance of workout (in meters)
  • duration of workout (in seconds)
  • calories burned during workout (as estimated by device)
  • average, max and min heart rate during workout
  • average pace during workout
  • average altitude during workout
  • ascent and descent of workout
  • max and min altitude
  • time stamp of each data point (in ISO UTC)

## Installation

pip install python-tcxparser

## Usage

>>> import tcxparser
>>> tcx = tcxparser.TCXParser('/home/vinod/Downloads/20121226-212953.tcx')
>>> # Duration of workout in seconds
... tcx.duration
>>> # latitude/longitude at start of workout
... tcx.latitude
>>> tcx.longitude
>>> tcx.activity_type
>>> # ISO UTC timestamp when workout completed
... tcx.completed_at
>>> # distance of workout in meters
... tcx.distance
>>> tcx.distance_units
>>> # calories burned (as reported by device)
... tcx.calories

## Contact Please contact me with any questions: Vinod Kurup (

File Type Py Version Uploaded on Size
python-tcxparser-0.7.1.tar.gz (md5) Source 2016-08-14 4KB