Subtilte Conversion utils - ass2srt vtt2bcc srt2bcc ass2bcc and more
Project description
subtitle_utils
Subtilte Conversion utils - ass2srt vtt2bcc srt2bcc ass2bcc and more
pip install -U subtitle_utils
使用
import subtitle_utils
method = subtitle_utils.SeeAvailableMethods()
print(method)
def get_convert(pre: str = "ass", aft: str = "srt", input_str: str = None) -> str:
_result_group = subtitle_utils.FormatConverter(pre=pre, aft=aft, strs=input_str)
_result_group: subtitle_utils.Returner
if not _result_group.status:
print(_result_group.dict())
return ""
result: str
result = _result_group.data
print(f"{_result_group.pre}->{print(_result_group.aft)}")
print(_result_group.msg)
return result
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subtitle_utils-0.1.3.tar.gz
(250.3 kB
view hashes)
Built Distribution
subtitle_utils-0.1.3-py3-none-any.whl
(250.5 kB
view hashes)
Close
Hashes for subtitle_utils-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390bdfc5d67c46a1385f47012e9636a39cea087b7f6fc5101600f9b3a2b608c4 |
|
MD5 | 30ae923463ee0d505913e01c27950a3b |
|
BLAKE2b-256 | 66997e973579fdd6f5cc05ba3363f4dfb0919838dac29c5ae4868e86a680fb26 |