__all__ added

This commit is contained in:
Andrei 2024-10-06 01:43:56 +03:00
parent 3f6c69796c
commit 5976d2d85e
4 changed files with 8 additions and 0 deletions

View File

@ -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__(

View File

@ -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."

View File

@ -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

View File

@ -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):