Skip to main content

A library for editing subtitle files

Project description

pysubs2 is a Python library for editing subtitle files. It’s based on SubStation Alpha, the native format of Aegisub; it also supports SubRip and MicroDVD formats. There is a small CLI tool for batch conversion and retiming.

import pysubs2
subs = pysubs2.load("my_subtitles.ass", encoding="utf-8")
subs.shift(s=2.5)
for line in subs:
    line.text = "{\\be1}" + line.text
subs.save("my_subtitles_edited.ass")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysubs2-v0.2.1.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file pysubs2-v0.2.1.tar.gz.

File metadata

  • Download URL: pysubs2-v0.2.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysubs2-v0.2.1.tar.gz
Algorithm Hash digest
SHA256 0598deeb5cc2db2ca0872efd761e528693d76efb05308f273a4d42dbcdba8149
MD5 cb3f950ceb2979b1796e87d6d2431ff1
BLAKE2b-256 90cce8d61a3a11e42cd14e5105f157245b77e74d4f969e0a5d2cb83e07d54bc7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page