
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
|pypi| |pyversions| |license| |coverage| |build-status| |docs-status| |downloads|
webvtt-py
is a Python module for reading/writing WebVTT_ caption files. It also features caption segmentation useful when captioning HLS videos
_.
Documentation is available at http://webvtt-py.readthedocs.io.
.. _WebVTT
: http://dev.w3.org/html5/webvtt/
.. _HLS videos
: https://tools.ietf.org/html/draft-pantos-http-live-streaming-19
::
$ pip install webvtt-py
.. code-block:: python
import webvtt
for caption in webvtt.read('captions.vtt'): print(caption.start) print(caption.end) print(caption.text)
.. code-block:: python
import webvtt
webvtt.segment('captions.vtt', 'output/path')
Supported formats:
.. code-block:: python
import webvtt
webvtt = webvtt.from_srt('captions.srt') webvtt.save()
webvtt.from_sbv('captions.sbv').save()
Caption segmentation is also available from the command line:
::
$ webvtt segment captions.vtt --output output/path
Licensed under the MIT License.
.. |pypi| image:: https://img.shields.io/pypi/v/webvtt-py.svg :target: https://pypi.python.org/pypi/webvtt-py
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/webvtt-py.svg :alt: Supported Python versions :target: https://pypi.python.org/pypi/webvtt-py
.. |license| image:: https://img.shields.io/pypi/l/webvtt-py.svg :alt: MIT License :target: https://opensource.org/licenses/MIT
.. |coverage| image:: https://codecov.io/gh/glut23/webvtt-py/graph/badge.svg?branch=master :target: https://codecov.io/gh/glut23/webvtt-py
.. |build-status| image:: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml/badge.svg?branch=master :target: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml
.. |docs-status| image:: https://readthedocs.org/projects/webvtt-py/badge/?version=latest :target: http://webvtt-py.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. |downloads| image:: https://static.pepy.tech/badge/webvtt-py :target: https://pepy.tech/project/webvtt-py :alt: Downloads
FAQs
WebVTT reader, writer and segmenter
We found that webvtt-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.