Skip to main content

vttdiff

Tests

This is a small utility for "diffing" two (or more) WebVTT files and generating an HTML file like this. It was designed for comparing a "ground truth" WebVTT file with WebVTT files that might have been created with different software or services.

usage: vttdiff [-h] [--output OUTPUT] [--include-times] [--width WIDTH] vtt [vtt ...]

positional arguments:
  vtt              The path to two (or more) WebVTT files

options:
  -h, --help       show this help message and exit
  --output OUTPUT  Write output to this file path
  --compare-times  Include cue times in the diff
  --width WIDTH    The default width (in characters) of each transcript in the diff

So you could run it like:

% vttdiff --output diff.html first.vtt second.vtt

Install

You should be able to pip install vttdiff:

$ pip3 install vttdiff

or just run it directly:

$ pipx run vttdiff

Develop

vttdiff uses Python's difflib and is held together by duct tape and baling wire. If you have ideas for improving it please send a PR!

$ git clone git@github.com:edsu/vttdiff.git
$ uv run pytest

Metadata

Release files for vttdiff 0.0.4

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

Source distribution (sdist)

Source distribution for vttdiff 0.0.4
File Size Uploaded
vttdiff-0.0.4.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vttdiff 0.0.4
File Interpreter ABI Platform
vttdiff-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / vttdiff-0.0.4.tar.gz

Download URL vttdiff-0.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d9e93abf350ebce48b2d11ff74affb9621aea74b8766cbfe154000665860a2df
BLAKE2b-256 checksum
How to use checksums
44815ce513f00e0cff7d89487c1d48caafe4a20770c653d5f9b3729db6bd049d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vttdiff-0.0.4-py3-none-any.whl

Download URL vttdiff-0.0.4-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83c23a5ba1eec8e4152018e367213ce303e6c748feb1945cd2325184c2d1289b
BLAKE2b-256 checksum
How to use checksums
81024fbf2a6336807daf995773779446b5839ada94bc55ef042a56710093786f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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