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
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.1.2.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for pyasstosrt-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66d81a201e20f90a31446394817080cbc221588db3392180c21bd82a7db2790 |
|
MD5 | aba81e3fe0d282cd13df47d7b29b8671 |
|
BLAKE2b-256 | 91cc0a5ed90486560ed3f8b56272d9d23ee03ad211dd1f354d5d0cda83def000 |