ndg-httpsclient
Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
What it is and what it does
ndg-httpsclient wraps PyOpenSSL to provide enhanced HTTPS support for Python's standard library HTTP clients. It patches httplib/http.client and urllib2/urllib to perform full SSL peer verification, including validation of Subject Alternative Names (SANs) in certificates using pyasn1. This addresses limitations in Python's default SSL implementation by enabling stricter certificate validation.
The package is designed for scenarios where you need reliable HTTPS connections with proper certificate verification—particularly important for scientific computing, system administration, and security-sensitive applications. It includes a command-line utility for fetching HTTPS resources with certificate and key options, and supports both Python 2.7 and Python 3.4+. The package has been in production use since 2012 and remains actively maintained.
Use it for:
- Fetch HTTPS resources with full SSL peer verification in legacy Python 2 or early Python 3 codebases.
- Validate certificates with Subject Alternative Names (SANs) when the standard library's SSL support is insufficient.
- Integrate client certificate authentication (mutual TLS) with custom CA certificate directories.
- Command-line HTTPS downloads with certificate and key file options for automated scripts.
- Scientific and research workflows requiring secure HTTPS communication with strict certificate validation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides enhanced HTTPS support for Python's httplib and urllib2 (or http.client and urllib in Python 3) by wrapping PyOpenSSL to enable full SSL peer verification using certificate validation.
Yes, if you need enhanced HTTPS verification for Python 2.7 or early Python 3 code, or if you require SAN validation that the standard library doesn't provide. No, if you are starting a new project on modern Python 3—use the standard library's ssl module or requests library instead. The package is stable and dependency-light, but its last release was in 2018; verify compatibility with your target Python version before adopting.
Install
ndg-httpsclient on PyPI
pip
pip install ndg-httpsclientuv
uv add ndg-httpsclientpoetry
poetry add ndg-httpsclientInstalling ndg-httpsclient
Before you install
Low friction install with no runtime dependencies. Package is actively maintained as of 2026-03-24 and marked Production/Stable, though the latest release was in 2018.
License in practice
BSD license (permissive) allows use in most projects with minimal restrictions; see the LICENCE file in the package for full details.
Quickstart
pip install ndg-httpsclient
import ndg.httpsclient.utils
response = ndg.httpsclient.utils.open_url('https://example.com')
Requires PyOpenSSL and pyasn1 to be installed for full SSL verification; pyasn1 is mandatory for subjectAltNames support.
Verify before relying
- Whether PyOpenSSL and pyasn1 are automatically installed as dependencies or must be installed separately.
- Current compatibility with modern Python versions beyond 3.6 (classifiers stop at 3.6).
- Whether this package is still recommended for new projects or primarily maintained for legacy code.
Package facts
| License | BSD - See ndg/httpsclient/LICENCE file for details (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 2,944 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,518,039/month — #1,894 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ndg_httpsclient-0.5.1-py2-none-any.whl; ndg_httpsclient-0.5.1-py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
service-identityVerifies that cryptography or pyOpenSSL…
permissive · top 5,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
requests-pkcs12Adds PKCS#12 certificate support to the…
permissive · top 5,000 on PyPI
backports.sslProvides the Python 3.4 ssl module API on older…
permissive · top 15,000 on PyPI
secure-smtplibProvides secure SMTP subclasses with TLS/SSL…
unclear · top 15,000 on PyPI
python3-dtlsAdds DTLS (Datagram Transport Layer Security)…
permissive · top 15,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI
hyper-upHTTP/2 client library for Python that provides…
permissive · top 15,000 on PyPI
urllib3urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
dbs3-pycurlProvides a Python client wrapper around pycurl…
permissive · top 15,000 on PyPI