--- id: types-pyopenssl version: "24.1.0.20240722" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-pyOpenSSL — Typing stubs for pyOpenSSL License: permissive · Maintenance: active · Downloads: 19.7M/mo ## 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 above — 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 pip install types-pyopenssl uv add types-pyopenssl 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_current - Install friction: low - Maintenance: active - Downloads: 19.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pyopenssl type stubs, type checking ssl, mypy pyopenssl annotations, static type checking cryptography, pep 561 type stubs, type-stubs, static-analysis [View on SkillFed](https://skillfed.io/packages/types-pyopenssl) · [View on PyPI](https://pypi.org/project/types-pyopenssl/)