---
title: "webvtt-py 0.8.0 Breaking Changes on PyPI | Since.dev"
description: "What each webvtt-py release removed, renamed or changed: 31 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/webvtt-py
last_updated: 2026-12-04
---

# webvtt-py breaking changes

webvtt-py 0.8.0 (November 8, 2026) is its newest release with breaking changes, 31 of them. The first: Removed webvtt.\_\_author\_\_. Every breaking API change we have recorded in webvtt-py on PyPI: 31 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.8.0`, released November 8, 2026. [Source repository](https://github.com/glut23/webvtt-py)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## webvtt-py 0.8.0 breaking changes

webvtt-py 0.8.0, released November 8, 2026: 31 breaking changes.

- **Removed** `webvtt.__author__`  

The author is now in the package metadata, so code that reads webvtt.\_\_author\_\_ must read the metadata instead. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Removed** `webvtt.__author_email__`  

The author email is now in the package metadata, so code that reads webvtt.\_\_author_email\_\_ must read the metadata instead. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Removed** `webvtt.vtt.WebVTTStyleBlock.STYLE_PATTERN`  

webvtt.vtt.WebVTTStyleBlock.STYLE_PATTERN was removed in webvtt-py 0.8.0 [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Behavior changed**  

The commands of the CLI read files with those extensions as SRT and SBV, so a WebVTT file with one of them needs the --format vtt option. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `from_sbv`  

It keeps the Byte Order Mark as read does, so save also keeps it for SBV files read with one. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `from_srt`  

It keeps the Byte Order Mark as read does, so save also keeps it for SRT files read with one. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `save_as_srt`  

It keeps the Byte Order Mark of the file that was read and saves in its encoding, as save does, instead of UTF-8 without it. Pass add_bom=False to save without it. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `Style`  

Styles with the same content are equal, and they can no longer be used in sets or as dictionary keys. Compare them with is to tell whether they are the same object. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `sync`  

It raises ValueError for a Timestamp before zero and TypeError for one with fields that are not integers, instead of writing timestamps that cannot be written. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `total_length`  

It returns milliseconds from the earliest start to the latest end of the captions, not whole seconds from the first caption to the last. Round it or convert it to int where whole seconds are needed. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Behavior changed** `WebVTT`  

Files with the same content are equal, and WebVTT objects can no longer be used in sets or as dictionary keys. Compare them with is to tell whether they are the same object. [github.com](https://github.com/glut23/webvtt-py/releases/tag/0.8.0)
- **Signature changed** `webvtt.Caption.__init__`  

Was def \_\_init\_\_(self, start: typing.Optional\[str\] = None, end: typing.Optional\[str\] = None, text: typing.Optional\[typing.Union\[str, typing.Sequence\[str\]\]\] = None, identifier: typing.Optional\[str\] = None, settings... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.cli.main`  

Was def main(argv: typing.Optional\[typing.Sequence\] = None); now def main(argv: Sequence\[str\] | None = None) -> None. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.sbv.parse`  

Was def parse(lines: typing.Sequence\[str\]) -> typing.List\[Caption\]; now def parse(lines: Sequence\[str\], issues: list\[ParseIssue\] | None = None) -> list\[Caption\]. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.segmenter.segment`  

Was def segment(webvtt_path: typing.Union\[str, WebVTT\], output: str, seconds: int = DEFAULT_SECONDS, mpegts: int = DEFAULT_MPEGTS, \*, overwrite: bool = False, duration: typing.Optional\[\_Position\] = None); now def segment(webvtt_path... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.srt.parse`  

Was def parse(lines: typing.Sequence\[str\]) -> typing.List\[Caption\]; now def parse(lines: Sequence\[str\], issues: list\[ParseIssue\] | None = None, styles: list\[Style\] | None = None) -> list\[Caption\]. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.srt.parse_captions`  

Was def parse_captions(lines: typing.Sequence\[str\]) -> typing.List\[Caption\]; now def parse_captions(lines: Sequence\[str\], issues: list\[ParseIssue\] | None = None, styles: list\[Style\] | None = None) -> list\[Caption\]. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.utils.FileWrapper.__exit__`  

Was def \_\_exit\_\_(self, exc_type, exc_val, exc_tb); now def \_\_exit\_\_(self, \*exc_info: object) -> None. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.utils.FileWrapper.__init__`  

Was def \_\_init\_\_(self, file_path: str, mode: typing.Optional\[str\] = None, encoding: typing.Optional\[str\] = None); now def \_\_init\_\_(self, file_path: \_Path, mode: str | None = None, encoding: str | None = None, errors: str | None = None). [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.utils.FileWrapper.detect_bom_encoding`  

Was @staticmethod def detect_bom_encoding(file_path: str) -> typing.Optional\[str\]; now @staticmethod def detect_bom_encoding(file_path: \_Path) -> str | None. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.utils.FileWrapper.open`  

Was @classmethod def open(cls, file_path: str, mode: typing.Optional\[str\] = None, encoding: typing.Optional\[str\] = None) -> FileWrapper; now @classmethod def open(cls, file_path: \_Path, mode: str | None = None, encoding: str | None = None... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.vtt.ParserOutput.__init__`  

Was def \_\_init\_\_(self, styles: typing.List\[Style\], captions: typing.List\[Caption\], header_comments: typing.List\[str\], footer_comments: typing.List\[str\], header_text: str = '', metadata: typing.List\[str\] = list(), regions... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.from_buffer`  

Was @classmethod def from_buffer(cls, buffer: typing.Union\[typing.Iterable\[str\], typing.BinaryIO\], format: str = 'vtt', strict: bool = False, encoding: typing.Optional\[str\] = None) -> WebVTT; now @classmethod def from_buffer(cls, buffer... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.from_sbv`  

Was @classmethod def from_sbv(cls, file: str, encoding: typing.Optional\[str\] = None) -> WebVTT; now @classmethod def from_sbv(cls, file: utils.\_Path, encoding: str | None = None, errors: str | None = 'strict') -> WebVTT. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.from_srt`  

Was @classmethod def from_srt(cls, file: str, encoding: typing.Optional\[str\] = None) -> WebVTT; now @classmethod def from_srt(cls, file: utils.\_Path, encoding: str | None = None, errors: str | None = 'strict') -> WebVTT. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.from_string`  

Was @classmethod def from_string(cls, string: str, strict: bool = False) -> WebVTT; now @classmethod def from_string(cls, string: str, strict: bool = False, format: str = 'vtt') -> WebVTT. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.iter_slice`  

Was def iter_slice(self, start: typing.Optional\[str\] = None, end: typing.Optional\[str\] = None) -> typing.Generator\[Caption, None, None\]; now def iter_slice(self, start: \_Position | None = None, end: \_Position | None = None, \*, overlapping... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.read`  

Was @classmethod def read(cls, file: str, encoding: typing.Optional\[str\] = None, strict: bool = False) -> WebVTT; now @classmethod def read(cls, file: utils.\_Path, encoding: str | None = None, strict: bool = False, errors: str | None =... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.save`  

Was def save(self, output: typing.Optional\[str\] = None, encoding: typing.Optional\[str\] = None, add_bom: typing.Optional\[bool\] = None); now def save(self, output: utils.\_Path | None = None, encoding: str | None = None, add_bom: bool | None... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.save_as_srt`  

Was def save_as_srt(self, output: typing.Optional\[str\] = None, encoding: typing.Optional\[str\] = None, keep_formatting: bool = False); now def save_as_srt(self, output: utils.\_Path | None = None, encoding: str | None = None... [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)
- **Signature changed** `webvtt.WebVTT.shift`  

Was def shift(self, offset: typing.Union\[float, datetime.timedelta\], start: typing.Optional\[str\] = None); now def shift(self, offset: float | datetime.timedelta, start: \_Position | None = None, \*, drop_before_zero: bool = False) -> None. [pypi.org](https://pypi.org/project/webvtt-py/0.8.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
