$npx skillfedfor your agent

pysubs2

A library for editing subtitle files

Worth itPyPI Python ModulesReleased Mar 2026264.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pysubs2-1.8.1-py3-none-any.whl
v1.8.1 · released 2026-03-19 · Python >=3.9

Yes. pysubs2 is a stable, actively maintained library with zero dependencies, broad format support, and a permissive license. Install it if you need to programmatically work with subtitles or build subtitle conversion and retiming tools. The low friction and production-ready status make it a straightforward choice for subtitle-related tasks.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low install friction with no runtime dependencies.
  • Actively maintained with a recent release and ongoing commits; classifiers indicate production-stable status and support for current Python versions.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute pysubs2 freely provided you include the license notice.

last release 2026-03-19 (148 days) · last repo commit 2026-07-30 · 436 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 263,983 downloads/mo, #8,347 on PyPI

Verify before relying

pip install pysubs2

import pysubs2
subs = pysubs2.load("my_subtitles.ass", encoding="utf-8")
subs.shift(s=2.5)
subs.save("my_subtitles_edited.ass")
  • Whether the library handles edge cases in format conversion (e.g., unsupported tags or malformed input) gracefully.
  • Performance characteristics when processing large subtitle files or batch operations.
  • Completeness of support for advanced SubStation Alpha features beyond basic text and timing.
Same gist for agents: .md · .json

What it is and what it does

pysubs2 is a Python library for reading, editing, and writing subtitle files across multiple formats. It centers on SubStation Alpha (the native format of Aegisub) but also handles SubRip, MicroDVD, MPL2, TMP, WebVTT, TTML, SAMI, and OpenAI Whisper captions. The library provides both a programmatic API for subtitle manipulation—loading files, shifting timings, modifying text and styling—and a command-line tool for batch conversion and retiming tasks.

The package has no external runtime dependencies, making installation straightforward. It is actively maintained, production-stable, and supports current Python versions. The MIT license places no restrictions on use, modification, or distribution. It is well-suited for developers building video processing pipelines, subtitle editors, or tools that need to work with captions in multiple formats.

Use it for

  • Batch convert subtitle files between formats (e.g., SRT to ASS) across a directory.
  • Programmatically adjust subtitle timings in response to video edits or synchronization issues.
  • Parse and modify subtitle text, styling, or metadata within a video processing workflow.
  • Integrate subtitle handling into a video editor or caption management application.
  • Process OpenAI Whisper-generated captions and convert them to standard subtitle formats.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pysubs2 is a stable, actively maintained library with zero dependencies, broad format support, and a permissive license. Install it if you need to programmatically work with subtitles or build subtitle conversion and retiming tools. The low friction and production-ready status make it a straightforward choice for subtitle-related tasks.

Install

pysubs2 on PyPI

Before you install

Low install friction with no runtime dependencies. Actively maintained with a recent release and ongoing commits; classifiers indicate production-stable status and support for current Python versions.

Requires Python 3.9 or later.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute pysubs2 freely provided you include the license notice.

Quickstart

pip install pysubs2

import pysubs2
subs = pysubs2.load("my_subtitles.ass", encoding="utf-8")
subs.shift(s=2.5)
subs.save("my_subtitles_edited.ass")

Verify before relying

  • Whether the library handles edge cases in format conversion (e.g., unsupported tags or malformed input) gracefully.
  • Performance characteristics when processing large subtitle files or batch operations.
  • Completeness of support for advanced SubStation Alpha features beyond basic text and timing.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 148 days since the last release
Last repo commit
First released
Downloads263,983 / month, #8,347 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Multimedia :: VideoTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: MarkupTyping :: Typed

Evidence: pysubs2-1.8.1-py3-none-any.whl

Tags

Capabilities
subtitle file editorsrt ass vtt conversionbatch subtitle retimingsubtitle format convertersubtitle text manipulationsubtitle timing adjustmentmulti-format subtitle library
Topics
subtitle-editingformat-conversionvideo-processing
PyPI keywords
MPL2MicroDVDSubRipSubStationWebVTTasscaptionssrtsubsubtitlesvtt

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “subtitle file editor”

  • pysubs2pysubs2 loads, edits, and saves subtitle files in multiple formats…
  • pysrtpysrt parses, edits, and writes SubRip (.srt) subtitle files,…
  • srtParse, modify, and compose SRT subtitle files with support for broken…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also aeidon · pysrt · webvtt-py · subliminal · srt · trakit · pydub · pyaaf2 · pywhispercpp · moviepy