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 (SRT), MicroDVD, MPL2, TMP and WebVTT 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-1.0.0.tar.gz
(21.7 kB
view details)
Built Distribution
pysubs2-1.0.0-py3-none-any.whl
(28.4 kB
view details)
File details
Details for the file pysubs2-1.0.0.tar.gz
.
File metadata
- Download URL: pysubs2-1.0.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3bebe7793068f2668456c0345ca2ed03ac2542688cdbe20c8bbf2967faf08c3 |
|
MD5 | f2689cae7a3f649900feb85626c1a866 |
|
BLAKE2b-256 | d98764db9207b8b5d7480b7632443a327698192aa2d4ce7fde668b187e507f82 |
File details
Details for the file pysubs2-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pysubs2-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825630c6316e6819fac342b2f020177b01cbe9b5a3252c4c6a0de4612c91c4a8 |
|
MD5 | 721aa6d69f70990d4a83fe6362c2f39b |
|
BLAKE2b-256 | a931ba5fa1da56104f0bdf635a0be48831d5057d3ca12e902574e0838a5074e7 |