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.4.0.tar.gz
(25.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysubs2-1.4.0-py3-none-any.whl
(32.1 kB
view details)
File details
Details for the file pysubs2-1.4.0.tar.gz.
File metadata
- Download URL: pysubs2-1.4.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa4fc9cf0a5d471c2b68219d936b98a53cbbe5821260c8466980e11c3a3f14bb
|
|
| MD5 |
1cd8a674ddb92daed53df358019f609c
|
|
| BLAKE2b-256 |
2534d0f56a953e6aacb3b5d593b653e761956966b45f153dbadfd36166bf1fc1
|
File details
Details for the file pysubs2-1.4.0-py3-none-any.whl.
File metadata
- Download URL: pysubs2-1.4.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c574ab8aceaa4b69ca4eecd29eb6ce0e75c671e9710992611b215e47229927b
|
|
| MD5 |
cee08195c891f5b21b8204e50e909c99
|
|
| BLAKE2b-256 |
175115730ea643544da0c192951b5527a52049366017ba0b847fe44bedac389e
|