Convert ASS subtitle to SRT format
Project description
pyasstosrt
pyasstosrt – this tool will help you convert Advanced SubStation Alpha (ASS/SSA) subtitle files to SubRip (SRT) files.
Support for str path:
from pyasstosrt import Subtitle
sub = Subtitle('sub.ass')
sub.export()
Support for all Path-like objects, instead of only pathlib's Path:
from pathlib import Path
from pyasstosrt import Subtitle
path = Path('sub.ass')
sub = Subtitle(path)
sub.export()
You can get a sheet with dialogue by specifying output_dialogues.
from pathlib import Path
from pyasstosrt import Subtitle
path = Path('sub.ass')
sub = Subtitle(path)
sub.export(output_dialogues=True)
CLI
pyasstosrt --filepath=/Users/user/sub/sub.ass export
Optional You can specify an export folder.
pyasstosrt --filepath=/Users/user/sub/sub.ass export /Users/user/sub/srt
Installation
Most users will want to simply install the latest version, hosted on PyPI:
$ pip install "pyasstosrt[cli]"
If you just want to use it as a library and don't need the CLI, you can omit the [cli]
extra.
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
pyasstosrt-1.2.1.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for pyasstosrt-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b12400bf8370aa5db235eeea22082b924005f47eb5226f528644c62baa4d5f50 |
|
MD5 | 6524cb2b719d084b853dd6502ec7f793 |
|
BLAKE2b-256 | 4825c47cca970915ee1aeb4ef0826e4dee018fdca8eacf5f39dfdd76693e64d9 |