Skip to main content

Training Video Organizer

PyPI

A CLI tool for organizing training videos, logging lift data, and sorting video files from the XTU S6 action camera.

pip install training-vid-organizer

Features

Lift & Session Management

  • Add individual lifts or bulk import sessions from JSON or CSV files
  • List, update, and delete logged entries
  • Filter by date, program, exercise, weight, RIR, etc.
  • Open video files to compare lift performance across various factors
  • Rich terminal output with tables and colors
  • Automatic calculation of estimated 1RM (Bryzycki method) and total set volume for each entry
  • Analyze progress across program iterations with built-in metrics comparison

Video File Organization & Playback

  • Process directories containing NORM-labeled video files
  • Automatically sort files by their NORM suffix in ascending order
  • Open filtered videos sequentially using VLC for side-by-side comparison
  • Dry-run mode to preview changes before applying them

Opening Videos Demo

demo calling tvo version and opening all deadlifts at 430

Prerequisites

  • Python 3.10+
  • uv (recommended for dependency management)
  • VLC media player (for video playback feature; optional but recommended)

Installing VLC

Linux:

sudo apt install vlc        # Debian/Ubuntu
sudo dnf install vlc        # Fedora/RHEL
sudo pacman -S vlc          # Arch Linux

macOS: Download from VLC official site or use Homebrew:

brew install vlc

Windows: Download installer from VLC official site.

Installation

# Install dependencies
uv sync

Environment Variables

Set TVO_VIDEO_DIR to point to your video storage directory:

Linux/macOS:

export TVO_VIDEO_DIR="/videos"

Windows (PowerShell):

$env:TVO_VIDEO_DIR="C:\Videos"

This environment variable is used by the process command to locate and organize your NORM-labeled video files.

Quick Start

# Initialize the database
tvo init


# Add a single lift with video
tvo add lift --date 2026-09-30 --program "Push/Pull/Legs" \
             --iteration 1 --lift squat --weight 225 --reps 8 \
             --top-set -f /videos/squat_20260930.mp4

# List all lifts with calculated metrics
tvo list lifts

# Filter by program and iteration
tvo list lifts --program "Push/Pull/Legs" --iteration 1

# Analyze progress across iterations (est. 1RM comparison)
tvo analyze estimated_1rm

# Analyze total set volume progression
tvo analyze total_set_volume

# Open videos for top sets (sequentially with VLC)
tvo open --top-set -l 50

# Process NORM video files in a directory
tvo process /videos/NORM --dry-run          # Preview sorting without changes
tvo process /videos/NORM                    # Apply sorting after confirmation

# Update a lift entry (by ID)
tvo update 42 --weight 230

# Delete an entry
tvo delete 42 --force

CSV Import Format

Bulk import training sessions from a CSV file:

tvo add session -c data/sessions.csv

Required Columns

Column Type Description
date string Date in YYYY-MM-DD format
program string Program name (e.g., "Push/Pull/Legs")
program_iteration integer Iteration number of the program
lift string Exercise name (e.g., "squat", "bench press")
weight integer Weight lifted in lbs or kg
reps integer Number of repetitions

Optional Columns

Column Type Description
bodyweight float Body weight at time of lift
top_set boolean Mark as top set (true/false)
warm_up_set boolean Mark as warm-up set (true/false)
reps_in_reserve integer RIR value (e.g., 1, 2, 3)
filename string Path to video file for this lift

Example CSV

date,program,program_iteration,lift,weight,reps,bodyweight,top_set,reps_in_reserve,filename
2026-09-30,Push/Pull/Legs,1,squat,225,8,185,true,1,/videos/squat_20260930.mp4
2026-09-30,Push/Pull/Legs,1,bench press,135,10,185,false,2,/videos/bench_20260930.mp4

Calculated Views

Each lift entry automatically calculates two metrics:

Estimated 1RM (One Rep Max)

Uses the Bryzycki formula: weight × 36 / (37 - reps)

Example: A squat with 200 lbs for 5 reps → estimated 1RM of ~225 lbs.

View in list output as "est. 1RM" column, or analyze progression across iterations:

tvo analyze estimated_1rm

Total Set Volume

Measures work done: weight × reps

Example: A bench press set with 135 lbs for 8 reps → volume of 1080 lbs.

Useful for comparing program iterations and tracking overall workload:

tvo analyze total_set_volume

Video File Processing

note: this mainly exists because prior to 2026, the xtu go cam saved files in a format that was hard to sort from a file explorer-like gui.

The process command organizes NORM-labeled video files in a directory by sorting them based on their NORM suffix. This is useful when you have multiple videos from different sessions that need to be ordered chronologically or numerically.

How It Works

  1. Scans the target directory for files containing "NORM"
  2. Extracts the numeric value from each file's NORM suffix (e.g., NORM0042 → 42)
  3. Sorts files in ascending order by this numeric value
  4. Displays a preview of the sorted order

Usage

# Preview changes without modifying files
tvo process /videos/NORM --dry-run

# Apply changes after confirming with prompt
tvo process /videos/NORM

Example Output

Sorted order (NORM suffix):
   1. 229638144_NORM0012.MP4 → NORM0012_229638144.MP4 (NORM0012)
   2. 273678336_NORM0165.mp4 → NORM0165_273678336.mp4 (NORM0165)
   3. file_NORM9999.MP4 → NORM9999_file.MP4 (NORM9999)

Normalize 3 file(s) in '/videos/NORM'? [y/N]: y

Notes

  • Only files directly in the target directory are processed (no subdirectories)
  • Files must contain "NORM" and follow the expected naming convention
  • Invalid filenames are skipped with a warning message

Metadata

Release files for training-vid-organizer 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for training-vid-organizer 0.6.2
File Size Uploaded Provenance Actions
training_vid_organizer-0.6.2.tar.gz 21.7 kB Without provenance Details for training_vid_organizer-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for training-vid-organizer 0.6.2
File Interpreter ABI Platform Actions
training_vid_organizer-0.6.2-py3-none-any.whl Python 3 none any Details for training_vid_organizer-0.6.2-py3-none-any.whl

Total release size: 47.3 kB

Release files / training_vid_organizer-0.6.2.tar.gz

Download URL training_vid_organizer-0.6.2.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9eeb1bbc65f0b316b8a00f0b6ffb2aac999a6ee52e5fed813c003e2f5fbe5ad8
BLAKE2b-256 checksum
How to use checksums
1b6f07aa69df18c78a400ecd74a2c698b2848fc8a57978b22f6494705fa3322c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / training_vid_organizer-0.6.2-py3-none-any.whl

Download URL training_vid_organizer-0.6.2-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
360d68938be8111252c8f513a163bdcf78e311fed85489e5453464cc920fe5f7
BLAKE2b-256 checksum
How to use checksums
a3a0d2ddf527686429c20760f5b34f70b19f65ea7b945cf4d6fb6c9174c10b83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for training-vid-organizer 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page