A CLI tool to create, save, and track progress of kettlebell workouts.
Project description
Table of Contents
kettlebells is a CLI designed to create, save, and track the progress of kettlebell workouts. The inspiration for this project came from Pat Flynn’s conversation with Bret Jones. (For a more detailed look at Iron Cardio, go checkout the Iron Cardio Book by Bret Jones.) After starting an initial project that focused only on iron cardio, I wanted to be able to add more. This is essentially a fork of the iron-cardio project designed to add various workouts such as the armor building complex, and dry fighting weight.
As of version 0.2.1, the way workouts are constructed has completely changed. This will allow users to construct their own custom workouts in the future. It will also allow the stats to keep track of how many reps of each type of exercise have been done.
Installation
uv
uv tool install kettlebells
pipx
pipx install kettlebells
Usage
Initialize
Run the init command to create the database.
kettlebells init
Next, run the setloads command. This sets the units to either pounds (lbs) or kilograms (kg), the user’s bodyweight, and the loads for the light, medium, and heavy kettlebell. This command can be run as needed when the user is ready to move up in load or bodyweight changes.
kettlebells setloads
Update Exercises
Occasionally, new exercises are added to the database. If you have already initialized in a previous version, run the update command.
kettlebells update
Commands
save
The save command saves workouts to the database. The current options are:
When run with no option, the save command will attempt to use the most recently generated random workout. Otherwise, use the --workout-type option to manually enter a workout, e.g.:
kettlebells save --workout-type abc
-
dfw
When the
savecommand is run with the workout type ofdfw, a dry fighting weight workout is saved. See the original post for more detailskettlebells save --workout-type dfw -
btb
The save command with a workout type of
btballows the user to save a Back to Basics Workout. These workouts are constructed based on The Pat Flynn Show episode with Dan John The BEST Kettlebell Program for GEGINNERS | THE BTBKP. The choices are ladders of 2-3-5 clean and presses followed by either snatches or double front squats. The warm up and cool exercises are not included in the workout.kettlebells save --workout-type btbThe program options are:
First block Second Block 2 ladders 60 Snatches 3 ladders 80 Snatches 5 ladders 100 Snatches 2 ladders 10 sets of 5 Double Front Squats 3 ladders 10 sets of 5 Double Front Squats 5 ladders 10 sets of 5 Double Front Squats -
pw
The save command with a workout type of
pwsaves versions of Dan John’s Perfect Workout. While in the video Dan does hip thrusts until it burns, for ease of recording the workout,kettlebellsoffers a set number of reps for the hip thrust.kettlebells save --workout-type pwThe program options are:
Variation Exercises Sets Reps Original Half-kneeling Press 3 8 Hanging Leg Raise 3 8 Banded Hip Thrust 3 15 Bulgarian Goat Bag Swing 3 8 Goblet Squat / Broomstick Overhead Squat 1 8 Indoor Half-kneeling Press 3 8 Child’s Pose 3 20 secs Hip Thrust / Clam Shell (15, 14, 13…) 1 120 Goblet Squat / Broomstick Overhead Squat 1 8 The Bull Half-kneeling Press 3 8 Hanging Leg Raise 3 8 Bulgarian Goat Bag Swing 3 8 Bent Over Rows 3 8 Goblet Squat / Broomstick Overhead Squat 1 8 -
rop
The save command with a workout type of
ropsaves versions of Pavel Tsatsouline’s rite of passage program from Enter The Kettlebell. The clean and press and pullups are calculated as ladders, while the swings and snatches are straight sets.kettlebells save --workout-type rop -
wolf
The save command with a workout type of
wolfsaves workouts from the free program The Wolf from Geoff Neupert. This is a gasser for sure.kettlebells save --workout-type wolf -
custom
When the
savecommand is run with the workout type ofcustom, the user can save a custom workout. Custom workouts need aworkout_typeand avariation. The default iscustom. Exercises are chosen via iterfzf. SelectOtherto add a custom exercise. SelectDoneor press escape when finished adding all the exercises.kettlebells save --workout-type custom-
Reps and Loads for Custom Exercises
Unilateral exercises such as the single arm overhead press (simply “Press” in the program) should have the reps doubled. For example, if the set and rep scheme is 3 sets of 8 single arm overhead presses on the left and right arm, that should be saved as 16 reps per set for that exercise.
When the stats are calculated, any exercise that has “Double” in it has the load multiplied by 2. So Double Pressing a pair of 24 kg kettlebells should be saved as a load of 24 kg, but the calculations will result in 48 kg per rep. If using uneven sized bells, use the average weight of the two bells rounded to the nearest integer.
-
Suggested Use for Complexes
Consider a workout out like the 8 - 5 - 3 Rep Scheme from Pat Flynn. The
workout_typewould be “complex”, thevariationwould be “8-5-3 Rep Scheme”. Technically, a set consists of 8 Goblet Squats, 5 Start Stop Swings, 3 Push-ups. Then you would repeat this for 5 rounds. However, inkettlebellsthe user will add each exercise separately. So the Goblet Squat would be 5 sets of 8. The Start Stop Swing would be 5 sets of 5, and the Push-up would be 5 sets of 3.
-
random
The work out command generates a random workout. The current options are:
ic(Iron Cardio)abc(Armor Building Complex)
-
iron-cardio
The
randomcommand with a workout type ofic, generates a random iron cardio workout.kettlebells random --workout-type icIron cardio workouts are built from the following parameters:
Parameter Options Single Bell Variations Classic Classic + Pull-up Classic + Snatch Traveling 2s Double Bell Variations Double Classic Double Classic + Pull-up Double Traveling 2s TIMES 30 mins 20 mins 10 mins LOADS heavy medium light SWINGS 0 - 150 -
abc
The random command with a workout type of
abcwill generate a random armor building complex workout.kettlebells random --workout-type abcParameter Options Single Bell Variations Armor Building Complex 2.0 Double Bell Variations Armor Building Complex TIMES 30 mins 25 mins 20 mins 15 mins 10 mins LOADS heavy medium light SWINGS 0 - 100
last
The last command displays the last saved workout and calculates the stats for it.
kettlebells last
view
Use the view command to search for previous workouts by date. If you have ripgrep installed, use the --preview flag to view more information about the workout based on the date.
kettlebells view --preview
Use the --Program flag to filter workouts based on a certain workouttype.
kettlebells view --Program
stats
The stats command displays the aggregated workout count, time, weight moved, number of reps, and density for all workout in the database.
kettlebells stats
-
Filtering by time
The stats command can be filtered using three arguments:
--start,--end,--year.Here is an example using
--startand--endto get the stats from Jan 2024.kettlebells stats --start 2024-01-01 --end 2024-02-01If you want to see an entire year, just use
--year.kettlebells stats --year 2024All three time filters work with the plots. And
--yearworks with the calendar command covered later. -
plot
To display a line plot of the weight moved per workout, use the
--plot lineoption. Add a line at the median with--medianor at the mean with--average.kettlebells stats --plot lineTo display a horizontal bar plot grouped by month, use the
--plot baroption.kettlebells stats --plot barTo display an event plot of the current year, use the
--plot eventoption.kettlebells stats --plot event -
calendar
To display a calendar of workouts in a given year, use the
--calendarflag and pass the year as the argument.kettlebells stats --calendar -y 2023 -
best
The
bestcommand displays the top ten workout based on the weight moved.kettlebells stats --bestUse the
--sortoption to sort the table by:- weight-moved (default)
- reps
- weight-density
- rep-density
- time
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 kettlebells-0.2.45.tar.gz.
File metadata
- Download URL: kettlebells-0.2.45.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9999ae0c8453cf49557834278bedf33c396e45bcf1743d5e60cfa39d12fe74f1
|
|
| MD5 |
157c1dbbd64087793319d29088b471cc
|
|
| BLAKE2b-256 |
a8b42aa622e7ed10ff880b3ff1bf444f8d484a9535cea063f5bae60d96d1582b
|
File details
Details for the file kettlebells-0.2.45-py3-none-any.whl.
File metadata
- Download URL: kettlebells-0.2.45-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c9832a79fc03d772a45a4f7f8232dec9c4a8d08eb3bdb1be6afc15ae705d63d
|
|
| MD5 |
d09d4a028bbd1ea34ea17617260c2a59
|
|
| BLAKE2b-256 |
1b5cd78b179568bd2eb4e04008ecd6723fa1f66d88c28e55e9bf4911c05fc413
|