Registry / data / tcxfile

tcxfile

JSON →
library1.0.4pypypi✓ verified 80d ago

A library for reading and writing TCX (Training Center XML) files, commonly used for GPS fitness data. Current version 1.0.4, supports Python >=3.0, released under MIT license. Stable, low release cadence.

pip install tcxfile
INSTALL
IMPORT
SIG · TCXFILE
T
tcxfile
datapythonv1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tcx
from tcxfile import Tcx
from tcxfile import TcxReader

Basic read and write TCX files.

from tcxfile import TcxReader # Read a TCX file tcx = TcxReader('path/to/activity.tcx') print(tcx.read()) # Write a TCX file from tcxfile import TcxWriter tcx_writer = TcxWriter('output.tcx') tcx_writer.write({'Activities': []})
Debug
Known issues
gotchaTcxReader.read() returns a dictionary, not an object. Access data via dict keys like ['Activities'].
fix
Use tcx.read()['Activities'] to iterate over activities.
affects: all
deprecatedTcxWriter.write() expects a dict structure; providing an empty list will produce an invalid TCX file without an Activities element.
fix
Ensure the dict has an 'Activities' key containing a list of activity dicts.
affects: all
gotchaTCX files may contain trackpoints with multiple extensions. tcxfile does not parse extensions by default.
fix
Access raw XML via TcxReader.tree if needed.
affects: all
Upgrade
Version history
1.0.4latest on PyPI · released Dec 2, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
tcxfile — pip install tcxfile · libregistry