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
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 import vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
Recursively convert all vtt files in directory
from vtt_to_srt import vtts_to_srt
path = '/path/to/directory'
vtts_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.3.tar.gz
(2.9 kB
view details)
File details
Details for the file vtt_to_srt3-0.1.8.3.tar.gz
.
File metadata
- Download URL: vtt_to_srt3-0.1.8.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd21ae2a8158db51853c1ff6a6b7d3a1445f3c809e6d80871ec19257c2d9e706 |
|
MD5 | 09d104854cec334a6da33beb559d708f |
|
BLAKE2b-256 | e2a3b9605207ca16acac064eb6879ddf4964afbfa68a875e0d52d8f62249c29e |