vtt to srt subtitles converter package
Project description
vtt_to_srt3
Convert vtt files to srt subtitle format
For Python 3.x you can get version for Python 2.7 here
Docs
https://jsonzilla.github.io/vtt_to_srt3/
Installation
pip install vtt_to_srt3
python -m pip install vtt_to_srt3
Usage from terminal
usage: vtt_to_srt.py [-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_srt3-0.2.0.0.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file vtt_to_srt3-0.2.0.0.tar.gz
.
File metadata
- Download URL: vtt_to_srt3-0.2.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3870997e8d6287c4f73b0c752971b4aa4bbcac0376e952bc05b0190a46cbfec |
|
MD5 | 368e9e031736f9a89a3ab5c1322fd80e |
|
BLAKE2b-256 | 35015a728b3306265af483d8e3a0b2448e2ccb28d7d0089c4b81d73aa5d91cfe |
File details
Details for the file vtt_to_srt3-0.2.0.0-py3-none-any.whl
.
File metadata
- Download URL: vtt_to_srt3-0.2.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cacfb3367846727b473ba6ea468f890bb3b42ced40c607fee23b6eaf7756a9fb |
|
MD5 | ddcb0296717f6670495283c1da57bae1 |
|
BLAKE2b-256 | b02a8464c578b8c95352a2917ca5f1604cbc91e1d7732684437bb04a91508768 |