skillfed

types-pyOpenSSL

Typing stubs for pyOpenSSL

types-pyopenssl v24.1.0.20240722 19.7M downloads/30d#1,057 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-pyopenssl

uv

uv add types-pyopenssl

poetry

poetry add types-pyopenssl

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only

Tags

pyopenssl type stubstype checking sslmypy pyopenssl annotationsstatic type checking cryptographypep 561 type stubs
type-stubsstatic-analysis

More Cryptography packages