From 5976d2d85e9e30a2d5a4d4ad6b5bf8305b9ac6f5 Mon Sep 17 00:00:00 2001 From: Andrei Date: Sun, 6 Oct 2024 01:43:56 +0300 Subject: [PATCH] __all__ added --- src/python3_anticaptcha/control.py | 2 ++ src/python3_anticaptcha/core/base.py | 2 ++ src/python3_anticaptcha/core/result_handler.py | 2 ++ src/python3_anticaptcha/image_captcha.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/python3_anticaptcha/control.py b/src/python3_anticaptcha/control.py index b415b28..37df6b6 100644 --- a/src/python3_anticaptcha/control.py +++ b/src/python3_anticaptcha/control.py @@ -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__( diff --git a/src/python3_anticaptcha/core/base.py b/src/python3_anticaptcha/core/base.py index 6b5646d..78f6016 100644 --- a/src/python3_anticaptcha/core/base.py +++ b/src/python3_anticaptcha/core/base.py @@ -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." diff --git a/src/python3_anticaptcha/core/result_handler.py b/src/python3_anticaptcha/core/result_handler.py index faad3a5..35ccbd0 100644 --- a/src/python3_anticaptcha/core/result_handler.py +++ b/src/python3_anticaptcha/core/result_handler.py @@ -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 diff --git a/src/python3_anticaptcha/image_captcha.py b/src/python3_anticaptcha/image_captcha.py index b5f79b1..0a36dc9 100644 --- a/src/python3_anticaptcha/image_captcha.py +++ b/src/python3_anticaptcha/image_captcha.py @@ -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):