SubRip (.srt) subtitle parser and writer
Project description
pysrt is a Python library used to edit or create SubRip files.
Usage
from pysrt import SubRipFile, SubRipItem, SubRipTime subs = SubRipFile('some/file.srt') subs[42].end.hours += 3 subs[42].sub_title = "Never end !" part = SubRipFile(i for i in subs if i.start.minutes >= 12) part.shift(seconds=-2) subs.save('other/path.srt', 'utf-8')
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
pysrt-0.1.1.tar.gz
(2.9 kB
view details)
File details
Details for the file pysrt-0.1.1.tar.gz
.
File metadata
- Download URL: pysrt-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffc82f113f92de59c6c46f8d206fc7da7a14cd4c6a8997a50461a11b8462f6b6 |
|
MD5 | 8956533c520ecca034ec93b691619fdd |
|
BLAKE2b-256 | b2212a1eadc3768a2ae7697bb4f654e6f2eed8a501ca81432026cc0ac58957bc |