# pytcx
TCX parsing for Python
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
## Usage
````python
with open('some.tcx') as h:
text = h.read()
activities = pytcx.parse_to_activities(text)
for activity in activities:
print(activity.start(), activity.name)
````
## Features
- Reads TCX files for runs synced via tapiriik
- Reads the following point data:
- latitude
- longitude
- altitude
- time
- heart_rate
- cadence
## Future Work
- Support cycling (need sample tcx)
- Support swimming (need sample tcx)
Raw data
{
"_id": null,
"home_page": "https://github.com/heoga/pytcx",
"name": "pytcx",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "tcx",
"author": "Karl Odie",
"author_email": "karlodie@gmail.com",
"download_url": null,
"platform": null,
"description": "# pytcx\n\nTCX parsing for Python\n\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n\n## Usage\n\n````python\n with open('some.tcx') as h:\n text = h.read()\n activities = pytcx.parse_to_activities(text)\n for activity in activities:\n print(activity.start(), activity.name)\n````\n\n\n## Features\n\n- Reads TCX files for runs synced via tapiriik\n- Reads the following point data:\n - latitude\n - longitude\n - altitude\n - time\n - heart_rate\n - cadence\n\n## Future Work\n\n- Support cycling (need sample tcx)\n- Support swimming (need sample tcx)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "GPX parsing for Python",
"version": "0.3.2",
"project_urls": {
"Homepage": "https://github.com/heoga/pytcx",
"Repository": "https://github.com/heoga/pytcx"
},
"split_keywords": [
"tcx"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3f666ace87dd076d5deaa7869f7f2eb4c0744741524625edd2a90717225516aa",
"md5": "4473c128fcdd8f0d195e7a12e7f34a6c",
"sha256": "791ca817704770d1d5714f181043c026ee85aa533de9c3ec34e66fd5a649570d"
},
"downloads": -1,
"filename": "pytcx-0.3.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4473c128fcdd8f0d195e7a12e7f34a6c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5025,
"upload_time": "2024-09-03T12:25:52",
"upload_time_iso_8601": "2024-09-03T12:25:52.958831Z",
"url": "https://files.pythonhosted.org/packages/3f/66/6ace87dd076d5deaa7869f7f2eb4c0744741524625edd2a90717225516aa/pytcx-0.3.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-03 12:25:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "heoga",
"github_project": "pytcx",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "wheel",
"specs": [
[
">=",
"0.22"
]
]
},
{
"name": "xmltodict",
"specs": []
}
],
"tox": true,
"lcname": "pytcx"
}