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.4.tar.gz
(250.8 kB
view hashes)
Built Distribution
subtitle_utils-0.1.4-py3-none-any.whl
(251.4 kB
view hashes)
Close
Hashes for subtitle_utils-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108e07881bd4c53f13a40cab4b9e52a640ed8a89dbb0633dd555f5da49ea0bbc |
|
MD5 | 81efbd151c19d76735ce600114b0476e |
|
BLAKE2b-256 | b05d0af2299fa18ea8ff5ee7095f42acc07cd4698a7e8c33eae910844a5a8427 |