vtt to srt subtitles converter package
Project description
vtt_to_srt3
Convert vtt files to srt subtitle format
For Python 3.x
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 [-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.3.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file vtt_to_srt3-0.2.0.3.tar.gz
.
File metadata
- Download URL: vtt_to_srt3-0.2.0.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61fb7568d937a71101abbc661825cbc72565e562dc7bdf5d63596b433279c6d |
|
MD5 | d476009b3ec043c2995fc3f0530288e4 |
|
BLAKE2b-256 | 688a40992c1640c9284002f120f2b71fa4a135f40596608d9d0eeee35c92d9c1 |
File details
Details for the file vtt_to_srt3-0.2.0.3-py3-none-any.whl
.
File metadata
- Download URL: vtt_to_srt3-0.2.0.3-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22686a2795ee931ebe72bfd074ee99b43e45a9155af98e1f0a249e6d871010a |
|
MD5 | 53d50e1284604b75d90c2da78a504e11 |
|
BLAKE2b-256 | a263bb088ddce198a4e686c5190a70fb65257addb77e1aab136bad45d692d76a |