Skip to content

Sweatpy

Downloads

Warning

Sweatpy is currently undergoing major revisions which will result in deprecations and backwards incompatible changes. We recommend pinning your sweatpy dependency in your requirements.txt file (e.g. sweat==0.19.0).

Tip

Noticed a missing feature, found a bug or just have a great idea for sweatpy? Get in touch with us by creating an issue here!

Introduction

Sweatpy is a Python library that is designed to make workout analysis a breeze. The current state of the project is "very beta": features might be added, removed or changed in backwards incompatible ways. When the time is right a stable version will be released. Get in touch with the contributors or create an issue if you have problems/questions/feature requests/special use cases.

Installation

This library can be installed from PyPI:

pip install sweat

Usage

Sweatpy supports loading .fit, .tcx and .gpx files. To load a .fit file:

import sweat


data = sweat.read_fit("path/to/file.fit")

More information about loading files can be found here.

The data frames that are returned by Sweatpy when loading files is similar for different file types. Read more about this standardization here.

Contributing

See contributing.

Contributors

License

See LICENSE file.