types-pyOpenSSL
Typing stubs for pyOpenSSL
What it is and what it does
types-pyOpenSSL is a PEP 561 type stub package that provides type annotations for pyOpenSSL, enabling static type checkers like mypy, pyright, and pytype to validate code that uses the library. It depends on types-cffi and cryptography, and is designed to work with pyOpenSSL version 24.1.x.
The package is maintained as part of typeshed and is marked as partial, meaning some annotations may be incomplete. It was tested with mypy 1.10.1, pyright 1.1.372, and pytype 2024.4.11. The package supports Python versions 3.8 and later.
Use it for:
- Add type checking to projects using pyOpenSSL 24.1.x with mypy or pyright
- Catch SSL and certificate handling bugs at type-check time rather than runtime
- Enable IDE autocompletion and type hints for pyOpenSSL APIs in supported editors
- Validate cryptographic code in CI/CD pipelines before deployment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for pyOpenSSL to enable static type checking with mypy, pyright, pytype, and other type checkers.
Yes, if you are using pyOpenSSL 24.1.x and want static type checking—install friction is low and the package is actively maintained. Check whether your pyOpenSSL version includes its own type stubs, as this package may be redundant for newer versions.
Install
types-pyopenssl on PyPI
pip
pip install types-pyopenssluv
uv add types-pyopensslpoetry
poetry add types-pyopensslInstalling types-pyOpenSSL
Before you install
Low install friction with only two runtime dependencies (types-cffi and cryptography). Actively maintained as part of typeshed with recent commits; however, the package is marked as partial and becomes redundant if the underlying library includes its own type stubs.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restriction.
Quickstart
pip install types-pyOpenSSL
# Type checkers will now understand pyOpenSSL imports
# Run mypy or pyright to check your code:
mypy your_script.py
Requires Python 3.8 or later.
Verify before relying
- Whether the partial stub coverage is sufficient for your specific usage patterns
- Compatibility with pyOpenSSL versions other than 24.1.x
- Whether pyOpenSSL 24.2.1 or later makes this package redundant for your use case
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — types-cffi, cryptography |
| Maintenance | actively maintained — 753 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 19,720,794/month — #1,057 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pyOpenSSL-24.1.0.20240722-py3-none-any.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
types-PillowProvides type stubs for Pillow, enabling static…
permissive · top 5,000 on PyPI
types-urllib3Provides type stubs for urllib3 to enable…
permissive · top 1,000 on PyPI
types-botoProvides type stubs for the boto AWS SDK,…
permissive · top 15,000 on PyPI
types-stripeProvides type stubs for the stripe package,…
permissive · top 5,000 on PyPI
types-redisProvides type stubs for the redis package,…
permissive · top 1,000 on PyPI
types-beautifulsoup4Provides type hints for beautifulsoup4 code via…
permissive · top 5,000 on PyPI
types-caldavProvides type stubs for caldav, enabling static…
permissive · top 15,000 on PyPI
service-identityVerifies that cryptography or pyOpenSSL…
permissive · top 5,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI