Skip to main content

Subtilte Conversion utils - ass2srt vtt2bcc srt2bcc ass2bcc and more

Project description

subtitle_utils

cover

Python

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)

Uploaded Source

Built Distribution

subtitle_utils-0.1.1-py3-none-any.whl (257.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page