Skip to main content

vtt to srt subtitles converter package

Project description

vtt_to_srt.py

Build Status

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


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.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

vtt_to_srt3-0.1.9.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file vtt_to_srt3-0.1.9.0.tar.gz.

File metadata

  • Download URL: vtt_to_srt3-0.1.9.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.1

File hashes

Hashes for vtt_to_srt3-0.1.9.0.tar.gz
Algorithm Hash digest
SHA256 0e63e99c26634c045dea0e9e7476833336f604a543b4b72689f23bf2da750d38
MD5 359906efce7ce9140fee8381642143bd
BLAKE2b-256 9522cc89314bc25a8bca197a8b4839c27511812f671df25903ccd418b609100d

See more details on using hashes here.

File details

Details for the file vtt_to_srt3-0.1.9.0-py3-none-any.whl.

File metadata

  • Download URL: vtt_to_srt3-0.1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.1

File hashes

Hashes for vtt_to_srt3-0.1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6807e83640a4fc9dafffa1e29b32e53a9100f58b51590a0e6065b27a34298dae
MD5 0417c303f906a505f3ef224ce3754868
BLAKE2b-256 2c20a6f374250f507c4fceb2b2df3a5849412a43631c22fbbcd2b230dca5f44d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page