{"id":13807905,"url":"https://github.com/glut23/webvtt-py","last_synced_at":"2025-10-22T02:51:47.798Z","repository":{"id":8499856,"uuid":"58630272","full_name":"glut23/webvtt-py","owner":"glut23","description":"Read, write, convert and segment WebVTT caption files in Python.","archived":false,"fork":false,"pushed_at":"2024-06-13T13:47:27.000Z","size":285,"stargazers_count":211,"open_issues_count":16,"forks_count":58,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T06:57:55.936Z","etag":null,"topics":["captions","hls","python","sbv","srt","subtitles","subtitles-parsing","webvtt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glut23.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-12T10:03:22.000Z","updated_at":"2025-04-20T13:11:59.000Z","dependencies_parsed_at":"2024-05-17T15:33:53.962Z","dependency_job_id":"79663bd7-1bce-4ba0-8462-63e7a2d99d58","html_url":"https://github.com/glut23/webvtt-py","commit_stats":{"total_commits":206,"total_committers":10,"mean_commits":20.6,"dds":0.09708737864077666,"last_synced_commit":"8c7552053b89b198fa4249a178d05f70e0649456"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glut23%2Fwebvtt-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glut23%2Fwebvtt-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glut23%2Fwebvtt-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glut23%2Fwebvtt-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glut23","download_url":"https://codeload.github.com/glut23/webvtt-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046472,"owners_count":22005602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["captions","hls","python","sbv","srt","subtitles","subtitles-parsing","webvtt"],"created_at":"2024-08-04T01:01:31.937Z","updated_at":"2025-10-22T02:51:47.704Z","avatar_url":"https://github.com/glut23.png","language":"Python","funding_links":[],"categories":["Miscellaneous","HarmonyOS","Python","Media Tools"],"sub_categories":["Windows Manager","Subtitle \u0026 Caption Tools"],"readme":"webvtt-py\n=========\n\n|pypi| |pyversions| |license| |coverage| |build-status| |docs-status| |downloads|\n\n``webvtt-py`` is a Python library for reading, writing and converting WebVTT_ caption files. It also features caption segmentation useful when captioning `HLS videos`_.\n\nDocumentation is available at http://webvtt-py.readthedocs.io.\n\n.. _`WebVTT`: https://www.w3.org/TR/webvtt1/\n.. _`HLS videos`: https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis\n\nInstallation\n------------\n\n::\n\n    $ pip install webvtt-py\n\nUsage\n-----\n\n.. code-block:: python\n\n  import webvtt\n\n  for caption in webvtt.read('captions.vtt'):\n      print(caption.identifier)  # cue identifier if any\n      print(caption.start)       # cue start time\n      print(caption.end)         # cue end time\n      print(caption.text)        # cue payload\n      print(caption.voice)       # cue voice span if any\n\nSegmenting for HLS\n------------------\n\n.. code-block:: python\n\n  import webvtt\n\n  webvtt.segment('captions.vtt', 'output/path')\n\nConverting captions from other formats\n--------------------------------------\n\nSupported formats:\n\n* SubRip (.srt)\n* YouTube SBV (.sbv)\n\n.. code-block:: python\n\n  import webvtt\n\n  webvtt = webvtt.from_srt('captions.srt')\n  webvtt.save()\n\n  # alternatively in a single line\n  webvtt.from_sbv('captions.sbv').save()\n\nCLI\n---\nCaption segmentation is also available from the command line:\n\n::\n\n    $ webvtt segment captions.vtt --output output/path\n\nLicense\n-------\n\nLicensed under the MIT License.\n\n.. |pypi| image:: https://img.shields.io/pypi/v/webvtt-py.svg\n    :target: https://pypi.python.org/pypi/webvtt-py\n\n.. |pyversions| image:: https://img.shields.io/pypi/pyversions/webvtt-py.svg\n    :alt: Supported Python versions\n    :target: https://pypi.python.org/pypi/webvtt-py\n\n.. |license| image:: https://img.shields.io/pypi/l/webvtt-py.svg\n    :alt: MIT License\n    :target: https://opensource.org/licenses/MIT\n\n.. |coverage| image:: https://codecov.io/gh/glut23/webvtt-py/graph/badge.svg?branch=master\n    :target: https://codecov.io/gh/glut23/webvtt-py\n\n.. |build-status| image:: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml/badge.svg?branch=master\n    :target: https://github.com/glut23/webvtt-py/actions/workflows/ci.yml\n\n.. |docs-status| image:: https://readthedocs.org/projects/webvtt-py/badge/?version=latest\n    :target: http://webvtt-py.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. |downloads| image:: https://static.pepy.tech/badge/webvtt-py\n    :target: https://pepy.tech/project/webvtt-py\n    :alt: Downloads","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglut23%2Fwebvtt-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglut23%2Fwebvtt-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglut23%2Fwebvtt-py/lists"}