PQ Python

requests

Inherits the interpreter’s OpenSSL through urllib3, so it offers X25519MLKEM768 only on OpenSSL 3.5+ interpreters; it sets no groups itself.

PyPI
requests
Version cited
2.34.2
Downloads
1.49B/mo

Key exchange and encryption

PQ with action

PQ on OpenSSL ≥3.5 interpreters

Signatures and identity

PQ with action

ML-DSA chains need OpenSSL ≥3.5

What to do

Run on an interpreter linked to OpenSSL 3.5+. To require the hybrid on Python 3.15, mount an HTTPAdapter subclass that passes ssl_context=ctx in init_poolmanager.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

requests 2.34.2 (1,492,504,107 downloads in 30 days, pypistats, 3 Dec) normally uses urllib3 2.8.0’s stdlib SSL context path in the pairing inspected; adapters and proxies can override it (requests adapters.py, urllib3 ssl_.py).

Behavior#

  • Sets no groups. ciphers= only affects TLS 1.2 and earlier.
  • Tested: Python 3.14.6 / OpenSSL 3.5.7 gave kex=X25519MLKEM768; Python 3.10.16 / OpenSSL 3.0.16 gave kex=X25519 Claude.
  • requests has no crypto dependency of its own; requests[security] no longer pulls in cryptography.

Requiring the hybrid#

On Python 3.15, build a context with set_groups(...) and pass it through a requests.adapters.HTTPAdapter subclass that sets ssl_context=ctx in init_poolmanager (recipe). On an OpenSSL 3.0 host, the AGY report suggests niquests[rtls] as a drop-in escape hatch (niquests); the Claude report tested urllib3’s pyOpenSSL injection (urllib3).

Audit the actual transport, custom contexts and any TLS-inspecting proxy (ASTRA report). Traffic to github.com stays X25519-only from any client (supply chain).

Sources cited on this page 2
  1. requests adapters.py github.com
  2. urllib3 ssl_.py github.com

All sources across the guide