-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.91 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (87 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "captcha-solver-api"
dynamic = ["version"]
description = "Official Python SDK for solving reCAPTCHA v2/v3, Cloudflare Turnstile, GeeTest v3/v4, Yandex SmartCaptcha, Tencent, and image/click captchas via the Captcha Solver API"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE.md"]
requires-python = ">=3.9"
authors = [
{name = "Captcha Solver Team"}
]
keywords = [
"captcha", "captcha solver", "recaptcha", "recaptcha v2", "recaptcha v3",
"cloudflare turnstile", "geetest", "geetest v4", "yandex smartcaptcha",
"tencent captcha", "image captcha", "coordinates", "click captcha", "api",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Image Recognition",
"Typing :: Typed",
]
dependencies = [
"requests>=2.28",
"httpx>=0.24",
]
[project.optional-dependencies]
dev = [
"pytest>=7",
"pytest-asyncio>=0.21",
"pytest-mock>=3",
"python-dotenv>=1.0",
"ruff>=0.6",
"mypy>=1.10",
"types-requests>=2.28",
"pytest-cov>=4",
]
[project.urls]
Homepage = "https://captcha-solver.com"
Documentation = "https://captcha-solver.com/en/docs/captcha-types"
Repository = "https://github.com/captcha-solver-api/python-sdk"
[tool.setuptools.packages.find]
include = ["captcha_solver_api*"]
[tool.setuptools.dynamic]
version = {attr = "captcha_solver_api._version.__version__"}
[tool.setuptools.package-data]
captcha_solver_api = ["py.typed"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["captcha_solver_api"]
branch = true
[tool.coverage.report]
show_missing = true
[tool.mypy]
# mypy 2.x cannot target 3.9; 3.10 is the lowest it accepts. Runtime
# compatibility with 3.9 is still covered by the CI test matrix.
python_version = "3.10"
strict = true
files = ["captcha_solver_api"]
[tool.ruff]
target-version = "py39"
line-length = 100
extend-exclude = [".pytest_cache", "*.md"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "N", "PIE", "RUF"]
ignore = [
"UP006", "UP035", "UP045", # keep typing.Optional/Dict/List for 3.9 readability
"N803", "N815", # task fields mirror API camelCase on purpose
"E501", # long lines in docstrings/tables
]
[tool.ruff.lint.per-file-ignores]
"examples/**" = ["E402"] # imports after sys.path/dotenv setup
"tests/**" = ["RUF012"]