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, MicroDVD and MPL2 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-0.2.3.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

pysubs2-0.2.3-py2.py3-none-any.whl (26.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pysubs2-0.2.3.tar.gz.

File metadata

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

File hashes

Hashes for pysubs2-0.2.3.tar.gz
Algorithm Hash digest
SHA256 bf8f37067c429cfbedbcad9b3a7a1830aa74124ba2e2d77267b92f4672a88916
MD5 bf66001ce4d897665e8e3cf5e1641f1b
BLAKE2b-256 a87478e6686cd51c1632d5d0757b31fe72389f06e4909099dbc1d1e61ee70e87

See more details on using hashes here.

File details

Details for the file pysubs2-0.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pysubs2-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2d3209a0478ece43ed0fe719ae1b1993ece854744c80c09f309fe7e57226951d
MD5 bc8f8d93847c50938ddeface27541fab
BLAKE2b-256 ec0bc4274fd06a9b10261c1790d52d415f60fb107caa5c6539d09ec089ef9c0d

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