Back to browse
GitHub Repository

Drop-in replacement for `import ssl` under CPython. Drop OpenSSL in favor of Rustls. ECH & PQ Ready!

7 starsPython

A drop-in replacement and memory-safe TLS back end for Python

by mesahm·Apr 2, 2026·1 point·1 comment

AI Analysis

●●SolidWizardryBig Brain

Drop-in Rustls for Python ssl module, but 10% slower than OpenSSL.

Strengths
  • Drop-in API compatibility with 93 public names matching the standard ssl module.
  • Supports freethreaded Python and asyncio without requiring changes to existing application code.
  • In-memory PEM loading allows certificates without writing temporary files to disk.
Weaknesses
  • Five to ten percent performance penalty compared to the standard OpenSSL backend.
  • Server-side support remains incomplete and PyPy runtime is explicitly not supported.
Category
Target Audience

Python developers, Security engineers, DevOps

Similar To

rustls · OpenSSL · urllib3

Similar Projects

AI/ML●●Solid

We made a back end agnostic SDK for Agent Memory

Backend-agnostic memory SDK with local embeddings and benchmark claims on BEAM.

Big BrainShip It
ethanjoffe
5428d ago