- One-line patch() covering requests / urllib3 / http.client / urllib / httpx (sync+async) / aiohttp - Zero source modification — pure monkeypatch, survives upstream upgrades - Auto-drop python-* User-Agents that contradict the impersonated Chrome fingerprint - Session(proxy=None) env-proxy fallback (PRIMP_PATCH_PROXY / HTTPS_PROXY) - PRIMP_PATCH_AUTO=1 opt-in auto-activation; idempotent patch/unpatch - 16/16 regression tests passing; openai SDK verified end-to-end
36 lines
1.0 KiB
TOML
36 lines
1.0 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "primp-patch"
|
|
version = "0.2.0"
|
|
description = "Runtime HTTP-layer replacement: route requests/urllib3/http.client/urllib through primp for browser-grade anti-bot fingerprinting"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "vex1023" }]
|
|
keywords = ["primp", "requests", "urllib", "anti-bot", "http", "impersonate", "patch"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
]
|
|
dependencies = [
|
|
"primp>=0.10",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
requests = ["requests>=2.20"]
|
|
urllib3 = ["urllib3>=1.26"]
|
|
all = ["requests>=2.20", "urllib3>=1.26"]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/vex1023/primp-patch"
|