Skip to main content

Create an HTML "diff" for webVTT files

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vttdiff-0.0.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vttdiff-0.0.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file vttdiff-0.0.4.tar.gz.

File metadata

  • Download URL: vttdiff-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for vttdiff-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d9e93abf350ebce48b2d11ff74affb9621aea74b8766cbfe154000665860a2df
MD5 5f4692060d47ca85f70ba58332c88a97
BLAKE2b-256 44815ce513f00e0cff7d89487c1d48caafe4a20770c653d5f9b3729db6bd049d

See more details on using hashes here.

File details

Details for the file vttdiff-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: vttdiff-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for vttdiff-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 83c23a5ba1eec8e4152018e367213ce303e6c748feb1945cd2325184c2d1289b
MD5 787816bb4ac52a0710a47e7c6a46b4cf
BLAKE2b-256 81024fbf2a6336807daf995773779446b5839ada94bc55ef042a56710093786f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page