Create a HTML "diff" ebVTT files
Project description
vttdiff
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] [--ignore-times] [--sentences] [--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
--ignore-times Ignore cue times in the diff
--sentences Reorient lines as sentences
--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
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
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 vttdiff-0.0.1.tar.gz.
File metadata
- Download URL: vttdiff-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1af39af97694d06e8100373c22e475bbbf649d1c66658c1377516ff16135e81
|
|
| MD5 |
16fdcf056eb508569ed9cb4a64c54864
|
|
| BLAKE2b-256 |
f2ead0fb919293b03873016b57eb855afedcb9f81ef918f905764abb4c5ca724
|
File details
Details for the file vttdiff-0.0.1-py3-none-any.whl.
File metadata
- Download URL: vttdiff-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f063e10764cef7df2cf2ff4bcdd12e6fd8976546d6d6749bf7b72e25d38d251
|
|
| MD5 |
7ce177f3d93f8f466e3c80727359087f
|
|
| BLAKE2b-256 |
9604e689f2abaecac7a88e24ddb91dc2bea70c2fef41caa1d4d3812074c23016
|