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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file structured_workout_format-0.4.1.tar.gz.
File metadata
- Download URL: structured_workout_format-0.4.1.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
413b2fd301fdb4161383e83ed7c4a7172fcf46e5a2fab2937e62ad8d51bd91a5
|
|
| MD5 |
8066c4c839c9b3a6c9291d927d566612
|
|
| BLAKE2b-256 |
e67db708900aacfc5e39f9298dae517261ae96485839d54790fe587f2ba9e1d1
|
File details
Details for the file structured_workout_format-0.4.1-py3-none-any.whl.
File metadata
- Download URL: structured_workout_format-0.4.1-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f781ca1b0011b04d084c2f944480e76efe646791a7dfcf93e24647341104410d
|
|
| MD5 |
c3cd566686dcec4714fe83e335e6595c
|
|
| BLAKE2b-256 |
6ab0de2dff9e6cbe93a38340add41d0e616dbe3269498f76e33c89cd3e0bcc3a
|