Skip to content

Commit

Permalink
Merge pull request #177 from AndreiDrang/main
Browse files Browse the repository at this point in the history
upd
  • Loading branch information
AndreiDrang authored Oct 15, 2024
2 parents 8fc1afa + a36cc31 commit 7bc3c76
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx==8.0.2
sphinx==8.1.3
pallets_sphinx_themes==2.1.3
myst-parser==4.0.0
autodoc_pydantic==2.2.0
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from .core.base import BaseCaptcha
from .core.enum import ControlPostfixEnm

__all__ = ("Control",)


class Control(BaseCaptcha):
def __init__(
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
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."
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/core/result_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
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
Expand Down
2 changes: 2 additions & 0 deletions src/python3_anticaptcha/image_captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from .core.base import BaseCaptcha
from .core.enum import CaptchaTypeEnm, SaveFormatsEnm

__all__ = ("ImageToTextCaptcha",)


class ImageToTextCaptcha(BaseCaptcha):

Expand Down
1 change: 1 addition & 0 deletions src/python3_anticaptcha/turnstile.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __init__(
Notes:
https://anti-captcha.com/apidoc/task-types/TurnstileTask
https://anti-captcha.com/apidoc/task-types/TurnstileTaskProxyless
"""

Expand Down

0 comments on commit 7bc3c76

Please sign in to comment.