vtt to srt subtitles converter package
Project description
vtt_to_srt2
Convert vtt files to srt subtitle format
For Python 2.x you can get version for Python 3.x here
Docs
https://jsonzilla.github.io/vtt_to_srt2/
Installation
pip install vtt_to_srt2
python -m pip install vtt_to_srt2
Usage from terminal
usage: vtt_to_srt [-h] [-r] [-e ENCODING] pathname
Convert vtt files to srt files
positional arguments:
pathname a file or directory with files to be converted
options:
-h, --help show this help message and exit
-r, --recursive walk path recursively
-e ENCODING, --encoding ENCODING
encoding format for input and output files
Usage as a lib
Convert vtt file
from vtt_to_srt.vtt_to_srt import ConvertFile
convert_file = ConvertFile("input_utf8.vtt", "utf-8")
convert_file.convert()
Recursively convert all vtt files in directory
from vtt_to_srt.vtt_to_srt import ConvertDirectories
recursive = False
convert_file = ConvertDirectories(".", recursive, "utf-8")
convert_file.convert()
Manual build
Generate wheel
python -m pip install --upgrade setuptools wheel build
python -m build
Generate documentation
Generate documentation
python -m pip install pdoc3
pdoc --html vtt_to_srt/vtt_to_srt.py -o docs
mv docs/vtt_to_srt.html docs/index.html
rm -rm docs/vtt_to_srt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vtt_to_srt2-0.2.0.3.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for vtt_to_srt2-0.2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ebf5c8d97f2db9e2b0c089bc1ee64c004832413c2ba3aca118756370bd3d630 |
|
MD5 | ecd06b004935db4026350a0330b83005 |
|
BLAKE2b-256 | a1fa7e771c563c7efdb8d1d31a5612110ef832fabe332ad89676baca0f6a4211 |