Skip to main content

vtt_to_srt3

Convert vtt files to srt subtitle format

For Python 3.x

Docs

https://jsonzilla.github.io/vtt_to_srt3/

Installation

pip install vtt_to_srt3
python -m pip install vtt_to_srt3

Usage from terminal

usage: vtt_to_srt [-h] [-r] [-e ENCODING] [-rf] 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
  -rf, --remove_format  remove the format tags like bold & italic from output files

Usage as a lib

Convert vtt file

from vtt_to_srt.vtt_to_srt import ConvertFile

convert_file = ConvertFile("input_utf8.vtt", "utf-8")
convert_file.convert()

Recursively convert all vtt files in directory

from vtt_to_srt.vtt_to_srt import ConvertDirectories

recursive = False
convert_file = ConvertDirectories(".", recursive, "utf-8")
convert_file.convert()

Manual build

Generate wheel

python -m pip install --upgrade setuptools wheel build
python -m build

Generate documentation

Generate documentation

python -m pip install pdoc3
pdoc --html vtt_to_srt/vtt_to_srt.py -o docs
mv docs/vtt_to_srt.html docs/index.html
rm -rm docs/vtt_to_srt

Metadata

Release files for vtt-to-srt3 0.2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vtt-to-srt3 0.2.0.4
File Size Uploaded Provenance
vtt_to_srt3-0.2.0.4.tar.gz 10.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vtt-to-srt3 0.2.0.4
File Interpreter ABI Platform
vtt_to_srt3-0.2.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / vtt_to_srt3-0.2.0.4.tar.gz

Download URL vtt_to_srt3-0.2.0.4.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ed1baea5fb1010752880cb877a1ab7ba10f9d7a248c4305f456ebba2651adf61
BLAKE2b-256 checksum
How to use checksums
63c65207dbce856c59fefd9e242da4e2def68ec69a90153cc8219b0b0aad9cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / vtt_to_srt3-0.2.0.4-py3-none-any.whl

Download URL vtt_to_srt3-0.2.0.4-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75dab9b55640b4d641b942d58a37e60a327121d0826a41fc214bb922574e0cab
BLAKE2b-256 checksum
How to use checksums
7fd82930e9585f37c9afa9df817b6a3a66df0e6178734a2d38f507e9bfd40233
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for vtt-to-srt3 0.2.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page