vtt to srt subtitles converter package
Project description
vtt_to_srt.py
Convert vtt files to srt subtitle format
Note
For Python 3.x you can get version for Python 2.7 here
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 vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
Recursively convert all vtt files in directory
from vtt_to_srt.vtt_to_srt import vtt_to_srt
path = '/path/to/directory'
vtt_to_srt(path, rec = True)
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.1.9.2.tar.gz
(9.7 kB
view details)
Built Distribution
File details
Details for the file vtt_to_srt3-0.1.9.2.tar.gz
.
File metadata
- Download URL: vtt_to_srt3-0.1.9.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 441764e688035e107af4c9a307bfe7a7f9fbc2794f6e91c14f618a08fd6f99d7 |
|
MD5 | ad7e37b6f285f5b5de8abcd75892f685 |
|
BLAKE2b-256 | 098644c7a7a26289354f615d8458123396edc7347e9bb6210a3ace015f171163 |
File details
Details for the file vtt_to_srt3-0.1.9.2-py3-none-any.whl
.
File metadata
- Download URL: vtt_to_srt3-0.1.9.2-py3-none-any.whl
- Upload date:
- Size: 10.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 | 162078f7ac4b269dda0e02cedebfcc8afcc6269e1608cc22336fbc43e5be7411 |
|
MD5 | 76ac21796db1a540150fc7a6c3fb0a7d |
|
BLAKE2b-256 | 637434f03f989ba323555990aa35e50fd2c77b01b29da51488938d8d732cb286 |