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
Release history Release notifications | RSS feed
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.2.tar.gz
(17.6 kB
view details)
File details
Details for the file pysubs2-0.2.2.tar.gz
.
File metadata
- Download URL: pysubs2-0.2.2.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c874682121008a94ee58098037557ab9a01d2463a17b44c3cd4d0dd59bd061 |
|
MD5 | cb159d41d1a81e43211d1149fbe1f2b2 |
|
BLAKE2b-256 | 83800a94a2237f7b61262f3aa33348e0ac2a2f56e47a7b7f42d766e8b4b1c497 |