Add pcurl: curl-like CLI backed by primp (Chrome TLS fingerprint)

- curl-compatible subset: -X/-d/-H/-F/-o/-L/-k/-s/-i/-I/-j/--max-time/--proxy
- Default impersonate chrome_146 (primp 2.x); --no-fingerprint to opt out
- Env proxy default (PRIMP_PATCH_PROXY/HTTPS_PROXY); curl exit codes
- Registered as console script 'pcurl' + python -m primp_patch.curl
This commit is contained in:
vex1023 committed 2026-10-01 10:52:07 +08:00
1 parent a9a0f47bf7
commit b48a3216bf
3 files changed
+220

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ dependencies = [
"primp>=0.10",
]
[project.scripts]
pcurl = "primp_patch.curl:main"
[project.optional-dependencies]
requests = ["requests>=2.20"]
urllib3 = ["urllib3>=1.26"]