Simple parser for Garmin TCX files
Project description
# 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](http://dailymile.com) 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)
## Installation
pip install python-tcxparser
## Usage
>>> import tcxparser >>> tcx = tcxparser.TcxParser('/home/vinod/Downloads/20121226-212953.tcx') >>> # Duration of workout in seconds ... tcx.duration 1992.78 >>> # latitude/longitude at start of workout ... tcx.latitude 35.951880198 >>> tcx.longitude -79.0931872185 >>> tcx.activity_type 'running' >>> # ISO UTC timestamp when workout completed ... tcx.completed_at '2012-12-26T22:03:05Z' >>> # distance of workout in meters ... tcx.distance 4686.31103516 >>> tcx.distance_units 'meters' >>> # calories burned (as reported by device) ... tcx.calories 379
## Contact Please contact me with any questions: Vinod Kurup (vinod@kurup.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-tcxparser-0.4.0.tar.gz
.
File metadata
- Download URL: python-tcxparser-0.4.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a9d36c409045379030fa880897074c859140e95f1e7bfd74256e97af8e00122 |
|
MD5 | 93f7db88c422c195985e8dc1d58fe472 |
|
BLAKE2b-256 | c7390989f89011e5d7c7f9a17d3d4c7aab370c42ac10a05f0a050139e6dc4367 |