Merged
Conversation
…Proxy class, README fixes - Add type hints to all public APIs in base.py, tasks.py, exceptions.py - Add Proxy frozen dataclass with parse_url() and to_kwargs() methods - Add snake_case aliases on AnticaptchaClient (create_task, get_balance, etc.) - Fix GeeTestTask bug: was inheriting wrong type "GeeTestTaskProxyless" - Add py.typed PEP 561 marker, Job and Proxy exports, __all__ list - Fix README: Python version claim, print() syntax, Proxy usage, error handling - Add requires-python to pyproject.toml for uv compatibility - Add tests for Proxy, snake_case aliases, and GeeTestTask type fix Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
from __future__ import annotationsand type annotations to all public APIs inbase.py,tasks.py, andexceptions.py. Createdpy.typedPEP 561 marker for IDE autocomplete support.python_anticaptcha/proxy.pywith frozenProxydataclass featuringparse_url()classmethod andto_kwargs()for unpacking into task constructors — fulfills existing (but broken) README references.create_task,create_task_smee,get_task_result,get_balance,get_app_stats,report_incorrect_image,report_incorrect_recaptchaonAnticaptchaClient. Both styles work silently.GeeTestTasknow correctly setstype = "GeeTestTask"instead of inheriting"GeeTestTaskProxyless"from parent.printstatements to use parentheses, updated examples to use snake_case methods, fixedProxy.parse_url()usage, fixed error handling to use correctly-spelledAnticaptchaException.JobandProxyto__init__.py, added__all__list.[project]table withrequires-pythonto fix uv warning.Test plan
uv run --with '.' --with pytest pytest tests/ --ignore=tests/test_examples.py)Proxy.parse_url()works:from python_anticaptcha import Proxy; Proxy.parse_url('socks5://u:p@h:8080')hasattr(AnticaptchaClient, 'create_task')returnsTrue🤖 Generated with Claude Code