Skip to main content

Structured Workout Format (SWF) — a JSON format for describing structured endurance workouts.

Project description

Structured Workout Format (SWF)

SWF is a JSON format for describing structured endurance workouts. Define a workout once in SWF, then export to Garmin, Intervals.icu, or other platforms.

uv add structured-workout-format
from structured_workout_format import Workout, Step, Repeat, duration, power, to_garmin

workout = Workout(
    sport="cycling",
    content=[
        Repeat(count=5, content=[
            Step(volume=duration(240), intensity=power(250)),
            Step(effort="rest", volume=duration(120)),
        ]),
    ],
)

print(to_garmin(workout))

Full documentation, specification, and examples at structuredworkoutformat.dev.

Source code and conformance suite on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structured_workout_format-0.4.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

structured_workout_format-0.4.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file structured_workout_format-0.4.1.tar.gz.

File metadata

File hashes

Hashes for structured_workout_format-0.4.1.tar.gz
Algorithm Hash digest
SHA256 413b2fd301fdb4161383e83ed7c4a7172fcf46e5a2fab2937e62ad8d51bd91a5
MD5 8066c4c839c9b3a6c9291d927d566612
BLAKE2b-256 e67db708900aacfc5e39f9298dae517261ae96485839d54790fe587f2ba9e1d1

See more details on using hashes here.

File details

Details for the file structured_workout_format-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for structured_workout_format-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f781ca1b0011b04d084c2f944480e76efe646791a7dfcf93e24647341104410d
MD5 c3cd566686dcec4714fe83e335e6595c
BLAKE2b-256 6ab0de2dff9e6cbe93a38340add41d0e616dbe3269498f76e33c89cd3e0bcc3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page