primp-patch v0.2.0: six-layer Python HTTP stack → primp (browser TLS fingerprint)

- 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
This commit is contained in:
vex1023 committed 2026-10-01 09:59:01 +08:00
commit 63b9e2ae0d
9 files changed
+1047

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
__pycache__/
*.py[cod]
*.egg-info/
build/
dist/
.venv/
*.egg