summaryrefslogtreecommitdiffhomepage
path: root/libs/pysubs2/__init__.py
blob: 8ce9986743a8f81eda75400b8bc6d6d8ee523194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from .ssafile import SSAFile
from .ssaevent import SSAEvent
from .ssastyle import SSAStyle
from . import time, formats, cli, exceptions
from .formats import whisper
from .exceptions import *  # noqa: F403
from .common import Color, Alignment, VERSION

__all__ = [
    "SSAFile",
    "SSAEvent",
    "SSAStyle",
    "time",
    "formats",
    "cli",
    "whisper",
    "exceptions",
    "Color",
    "Alignment",
    "VERSION",
    "load",
    "load_from_whisper",
    "make_time",
]

#: Alias for :meth:`SSAFile.load()`.
load = SSAFile.load

#: Alias for :meth:`pysubs2.whisper.load_from_whisper()`.
load_from_whisper = whisper.load_from_whisper

#: Alias for :meth:`pysubs2.time.make_time()`.
make_time = time.make_time

#: Alias for `pysubs2.common.VERSION`.
__version__ = VERSION