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.3.1.tar.gz
(24.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.3.1-py3-none-any.whl
(31.4 kB
view details)
File details
Details for the file pysubs2-1.3.1.tar.gz.
File metadata
- Download URL: pysubs2-1.3.1.tar.gz
- Upload date:
- Size: 24.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 |
d964c18bf451fcd2cef65456af2e9c1880a437389e92d1c90fa727553c95418d
|
|
| MD5 |
e51b1f7357bf216672c2898d6d06a2b9
|
|
| BLAKE2b-256 |
a581843ef77c9f426788b2cebcbbbb387895c51f74fee3511b911a2580c38497
|
File details
Details for the file pysubs2-1.3.1-py3-none-any.whl.
File metadata
- Download URL: pysubs2-1.3.1-py3-none-any.whl
- Upload date:
- Size: 31.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 |
2240d0e1fc1b6eb47f7ed0a2f0909ab5306d31689328d0a1025dba1bbd3f28a3
|
|
| MD5 |
e78708cc027898bc9b90f0bae2cd225b
|
|
| BLAKE2b-256 |
dd686a755410b5d653b37b0d2a3d0c267c41a76ec6ade3d3acbc6427eb8f38d3
|