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.4.tar.gz
(25.7 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.4-py3-none-any.whl
(32.4 kB
view details)
File details
Details for the file pysubs2-1.4.4.tar.gz.
File metadata
- Download URL: pysubs2-1.4.4.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e93431225c6809ecaee50a1c4d428eb5d56b6d564f6b4beb9e817aa1d8de3d
|
|
| MD5 |
d49541581150ce0f3d43e779f1e11f3e
|
|
| BLAKE2b-256 |
460be15f9e9a760703d8a5395cf5c496bcb393b3345fd55d641cc6f7417080ea
|
File details
Details for the file pysubs2-1.4.4-py3-none-any.whl.
File metadata
- Download URL: pysubs2-1.4.4-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9343a8350540038602598dddb619a6220ea6fce942bee145c1871cfb9b6e7b76
|
|
| MD5 |
75ca14586be0fa858672fb20b5ea29da
|
|
| BLAKE2b-256 |
0fa471cfc6d7d348a09663166d8414bb872616e8134e17201425c8d6fdcfd0de
|