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.1.tar.gz
(257.3 kB
view hashes)
Built Distribution
subtitle_utils-0.1.1-py3-none-any.whl
(257.3 kB
view hashes)
Close
Hashes for subtitle_utils-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa6f40164ce48374e0c698ff736277a5f24b0449ca53553a6d66017794281ef |
|
MD5 | b88f4c5af083e6c087635d8cfe36df08 |
|
BLAKE2b-256 | e2aa2c7e58b9d0712d09703324073ad1e7b5ef5902a886c5bcef5ea6a3ff257b |