__all__ added
This commit is contained in:
parent
3f6c69796c
commit
5976d2d85e
|
@ -3,6 +3,8 @@ from typing import Optional
|
|||
from .core.base import BaseCaptcha
|
||||
from .core.enum import ControlPostfixEnm
|
||||
|
||||
__all__ = ("Control",)
|
||||
|
||||
|
||||
class Control(BaseCaptcha):
|
||||
def __init__(
|
||||
|
|
|
@ -17,6 +17,8 @@ from .config import RETRIES, ASYNC_RETRIES, BASE_REQUEST_URL, CREATE_TASK_POSTFI
|
|||
from .serializer import CreateTaskBaseSer, CreateTaskResponseSer, GetTaskResultRequestSer, GetTaskResultResponseSer
|
||||
from .result_handler import get_sync_result, get_async_result
|
||||
|
||||
__all__ = ("BaseCaptcha",)
|
||||
|
||||
|
||||
class BaseCaptcha:
|
||||
NO_CAPTCHA_ERR = "You did not send any file, local link or URL."
|
||||
|
|
|
@ -10,6 +10,8 @@ from .enum import ResponseStatusEnm
|
|||
from .config import RETRIES, BASE_REQUEST_URL, GET_RESULT_POSTFIX, attempts_generator
|
||||
from .serializer import GetTaskResultRequestSer, GetTaskResultResponseSer
|
||||
|
||||
__all__ = ("get_sync_result", "get_async_result")
|
||||
|
||||
|
||||
def get_sync_result(
|
||||
result_payload: GetTaskResultRequestSer, sleep_time: int, url_response: str = GET_RESULT_POSTFIX
|
||||
|
|
|
@ -4,6 +4,8 @@ from typing import Union, Optional
|
|||
from .core.base import BaseCaptcha
|
||||
from .core.enum import CaptchaTypeEnm, SaveFormatsEnm
|
||||
|
||||
__all__ = ("ImageToTextCaptcha",)
|
||||
|
||||
|
||||
class ImageToTextCaptcha(BaseCaptcha):
|
||||
|
||||
|
|
Loading…
Reference in New Issue