Skip to main content

vtt_to_srt2

Convert vtt files to srt subtitle format

For Python 2.x you can get version for Python 3.x here

Docs

https://jsonzilla.github.io/vtt_to_srt2/

Installation

pip install vtt_to_srt2
python -m pip install vtt_to_srt2

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-srt2 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-srt2 0.2.0.4
File Size Uploaded Provenance
vtt_to_srt2-0.2.0.4.tar.gz 10.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 19.8 kB

Release files / vtt_to_srt2-0.2.0.4.tar.gz

Download URL vtt_to_srt2-0.2.0.4.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6261d1f9febecbca901a71c7a205a60c34e3d9c6e088f01f558af414e50d2446
BLAKE2b-256 checksum
How to use checksums
fca10d9635c1457d128556d0f8a12a67f78ae721874ec164b98e689eeb2c9af6
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_srt2-0.2.0.4-py3-none-any.whl

Download URL vtt_to_srt2-0.2.0.4-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffa7bfd06a1afbecb0c8cb0400fbb6909eae4cf79b6abe166528605815502bf5
BLAKE2b-256 checksum
How to use checksums
58670d563250c8e7eb3dc131d3978d502c0dfc3bf80aab4a856d32af90ce9302
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-srt2 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