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.2.tar.gz
(250.1 kB
view hashes)
Built Distribution
subtitle_utils-0.1.2-py3-none-any.whl
(250.3 kB
view hashes)
Close
Hashes for subtitle_utils-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6b72fa1de946a40afd10de8251f4f2e53ce2db6dc37811cf7daf2176496030f |
|
MD5 | 207ffbbd2a42e6ede1fe80885668ad84 |
|
BLAKE2b-256 | 9d9d908e7a5d41b7b99498b3f3821e8cbd76b8018bdd4be29d6adb8ccb0d1675 |