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.2.tar.gz
(25.7 kB
view details)
Built Distribution
pysubs2-1.4.2-py3-none-any.whl
(32.4 kB
view details)
File details
Details for the file pysubs2-1.4.2.tar.gz
.
File metadata
- Download URL: pysubs2-1.4.2.tar.gz
- Upload date:
- Size: 25.7 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 | ffc49b40f4d6867eced2b8cf51b074004c03a419fa460655b779574a792c5fa0 |
|
MD5 | 3e5373af1992486a7e2086d541de71e5 |
|
BLAKE2b-256 | a68e409bfe453b588d2ff7bedb8bdc5101ff056f82a5582d2caf618a0c50c490 |
File details
Details for the file pysubs2-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: pysubs2-1.4.2-py3-none-any.whl
- Upload date:
- Size: 32.4 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 | cba936f66b44c3b4fede4172499291dab5ec473e05e707e7d19218bd3e4ade17 |
|
MD5 | 27cb229786bea4f404886af7018e7f80 |
|
BLAKE2b-256 | ba7e7aecdfdd14194f76f0cb67d5c8cffa88dff62b673aa11dfb377cb3ec846f |