Skip to content

Example data

Sweatpy comes included with a range of example data for testing purposes.

An index of the data is kept here.

import json

import sweat

example_fit = sweat.examples(path='')

You can use the example data for testing:

import sweat

data = sweat.read_fit(example_fit.path)

If you are looking for a specific file type or sport you can also filter the example data, which returns a filter iterable that you can iterator over:

import sweat

examples = sweat.examples(,

for example in examples:
    # Do fancy things with example data...