vtt to srt subtitles converter package
Project description
vtt_to_srt.py
useful python script for Python 3.7 (you can get version for Python 2.7 here: https://github.com/jansenicus/vtt-to-srt.py)
convert vtt files to srt subtitle format
Installation:
pip install vtt_to_srt3
Usage from terminal:
python -m vtt_to_srt.py 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.6.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file vtt_to_srt3-0.1.6.tar.gz
.
File metadata
- Download URL: vtt_to_srt3-0.1.6.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27006faf725318e44ee5a9968e89f59522296a8b87d0ce91cf0a8ea27255d0d8 |
|
MD5 | f43c5e983d53c1695c4187a7a59b986f |
|
BLAKE2b-256 | 829a6744d95bb278651cdd97d07bf45774d81e7dc7af7c1bdf3142cc9a670e5b |
File details
Details for the file vtt_to_srt3-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: vtt_to_srt3-0.1.6-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e139c6fc11f107f4cfca8504b59d04dd22fbd0ed3af6a08cfe7aef5ff6a640f |
|
MD5 | 28b717bacd958295af38b8ac9b69e61f |
|
BLAKE2b-256 | 2b42a1edb2e423a8845570ac00e8a991efcbd332ea00cb6e6ca801fd817e2e7a |