Ox
Plain text training log format and toolchain. Record training in .ox files, parse into structured data, analyze progress over time.
Inspired by Beancount (plain text accounting, but for training). Named after Milo of Croton.
Quick Start
Create training.ox:
2025-01-14 T pullups: 24kg 5/5/5
@session
date: 2025-01-15
name: Upper Volume
bench-press: 135lb 5x10
overhead-press: 85lb 4x10
pullup: BW 5x8
@end
2025-01-15 W 185lb T06:30 "home"
Run the CLI:
ox training.ox
Documentation
Full docs at konnerhorton.github.io/ox:
- Getting Started — first training log
- CLI Reference — commands and usage
- Reports & Plugins — built-in reports, plugin system
- API Reference — Python library
- Editor Support — VSCode extension, LSP, tree-sitter grammar
Syntax Overview
# Single-line entry
2025-01-14 T squat: 135lb 5x5 "felt good"
# Timed and measured work
2025-01-14 T plank: BW PT45S 3x1
2025-01-14 T run: 5km PT25M
# Session block — only `date:` is required, and it must come first
@session
date: 2025-01-15
name: Lower Body
srpe: 6 PT50M
squat: 135lb 5x5
deadlift: 185lb 3x5
note: "easy day"
@end
# Ad hoc session — no name, and planned work with `completed: false`
@session
date: 2025-01-16
pullups: BW 3x10
pushups: BW 3x15
@end
# Weigh-in
2025-01-15 W 185lb T06:30 "home"
# Note
2025-01-15 note "deload week"
# Include another file
@include "other.ox"
# Movement definition
@movement squat
equipment: barbell
tags: squat, lower
note: back squat
@end
# Load a plugin
@plugin "plugins/my_plugin.py"
Markers: T training entry, W weigh-in
Session fields: date: (required, first), name:, completed:, format:, srpe:, note:
Session RPE: srpe: 6 PT50M "note" — a rating and how long the session ran
Weights: 24kg, 135lb, BW, 24kg+32kg (combined), 24/32/48kg (progressive, with implied units)
Reps: 5x5 (sets x reps), 5/3/1 (per-set)
Duration: ISO 8601 (PT30M, PT1H30M15S), progressive PT30S/PT25S/PT20S
Distance: 5km, 3mi, 400m, progressive 100m/200m/400m (or 100/200/400m)
Weight, duration, and distance are independent per-set fields, so a set can carry all of them.
Given once a field applies to every set; given as a /-list it maps one value per set. The rep
scheme sets the count (5x1 is five sets of one rep); with none, run: PT30M is a single set.
Movement names: no spaces (kb-oh-press, bb-back-squat)
Planning is expressed only by a session's completed: false — a single-line entry always records
training that happened.
Installation
Ox is on PyPI as ox-train (the name ox was taken). It installs the ox command and the
ox-lsp language server:
uv tool install ox-train # or: pip install ox-train
From source:
git clone https://github.com/konnerhorton/ox.git
cd ox
pip install -e .
Development
uv sync
uv run pytest
uv run ruff check src/ tests/
License
MIT — see LICENSE.
Metadata
Release files for ox-train 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ox_train-0.6.1.tar.gz | 95.5 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| ox_train-0.6.1-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| ox_train-0.6.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 | Details |
| ox_train-0.6.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.5+ x86-64 | Details |
| ox_train-0.6.1-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details |
| ox_train-0.6.1-cp312-abi3-macosx_10_13_x86_64.whl | CPython 3.12 | abi3 | macOS 10.13+ x86-64 | Details |
Total release size: 402.4 kB
Release files / ox_train-0.6.1.tar.gz
| Download URL | ox_train-0.6.1.tar.gz |
|---|---|
| Size | 95.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70e7b181f12a0a4a3c273ce9580d3f58b79af041353664dba551f0250bed4e29
|
|
BLAKE2b-256 checksum How to use checksums |
3baa14309f0819786136ceb0e05d5002f2f613850c1e2562d49b7f8be912d3d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / ox_train-0.6.1-cp312-abi3-win_amd64.whl
| Download URL | ox_train-0.6.1-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 60.3 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
455b95110a4e457232356205e81916ca6c21e2ae7802c31489c471502a7a2f2c
|
|
BLAKE2b-256 checksum How to use checksums |
90ec7afa8dcf0effc5cade5f3b50e4c7463fa7ddfd391bfe9579637d7049713e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / ox_train-0.6.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | ox_train-0.6.1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 65.9 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
adf3c6fdfdec73f4e1fe90127fdafa9282e8c1976d2b2fb9125a4c1c76d882d3
|
|
BLAKE2b-256 checksum How to use checksums |
16351fdf3be3a76e189de93e74177fafe27a79ca791892fea45474bf57dd2ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / ox_train-0.6.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | ox_train-0.6.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 65.0 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d527fb182143e9e87418bc07ed172c9f2b8dddda655c75759b13a67c7ed6a786
|
|
BLAKE2b-256 checksum How to use checksums |
4a8a04f705e8ed778c7293279b0a7d2c3c684bc178c7104ffd69ac396a7c0007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / ox_train-0.6.1-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | ox_train-0.6.1-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 58.3 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4161afee6b7d617c87e5ff909965dbcf98251b89a86c369346f47b4312649310
|
|
BLAKE2b-256 checksum How to use checksums |
e29164811694557ff19e62b8d8786713ae7d74cac4b6dc4b84feb26c930973dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / ox_train-0.6.1-cp312-abi3-macosx_10_13_x86_64.whl
| Download URL | ox_train-0.6.1-cp312-abi3-macosx_10_13_x86_64.whl |
|---|---|
| Size | 57.5 kB |
| Tags | CPython 3.12 abi3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
d2fdc69e6cc76cd76b22cbcb11e0717a5f61531a96e2debf741b539a15ddcf3e
|
|
BLAKE2b-256 checksum How to use checksums |
40085629febf75e2567f45597011d667355275bc51367aa7bdee51fe7b599b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for ox-train 0.6.1
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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for ox_train-0.6.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA 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.