vtt to srt subtitles converter package
Project description
vtt_to_srt.py
Convert vtt files to srt subtitle format
Note
For Python 3.7 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
python -m vtt_to_srt pathname [-r]
pathname - a file or directory with files to be converted
-r - walk path recursively
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.8.9.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for vtt_to_srt3-0.1.8.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d022958cfa3c2e0b382359e96321eccd8ea10ae1e26173b21ac5e8b2e503a6f7 |
|
MD5 | ee9d19c9f3d1d5d45401262930596c77 |
|
BLAKE2b-256 | 7328a8a53b50036ff1b7017163a5434ed821f661360f02f9be7fb3e365af807b |