skillfed

types-jwcrypto

Typing stubs for jwcrypto

types-jwcrypto v1.5.8.20260720 571.0K downloads/30d#5,953 on PyPI37
Permissive license Apache-2.0 Active released

What it is and what it does

types-jwcrypto is a type stub package that adds static type information to the jwcrypto cryptographic library. It allows type checkers like mypy and pyright to understand and verify the types of jwcrypto's functions, classes, and methods as you use them in your code. This is particularly useful for catching type-related bugs before runtime when working with JWT tokens, cryptographic keys, and related operations.

The stubs are maintained as part of the typeshed project and are tested against mypy 2.3.0 and pyright 1.1.411. They target jwcrypto version 1.5.8. Installation is straightforward and adds only a lightweight dependency on cryptography. Since this is a stub-only package, it does not execute code itself—it exists purely to inform your type checker.

Use it for:

  • Enable mypy or pyright to type-check code that imports and uses jwcrypto for JWT token creation and validation.
  • Catch type mismatches in cryptographic key handling before runtime in large codebases.
  • Improve IDE autocomplete and inline documentation when working with jwcrypto APIs.
  • Enforce type safety in projects that require strict static analysis of security-sensitive cryptographic code.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type annotations for the jwcrypto library, enabling static type checkers like mypy and pyright to verify code that uses jwcrypto for cryptographic operations.

Yes, if you use jwcrypto and run a static type checker. The stubs are actively maintained, have no security vulnerabilities, and carry a permissive license. Install it alongside jwcrypto to gain type safety with minimal overhead. Not necessary if you do not use type checking.

Install

types-jwcrypto on PyPI

pip

pip install types-jwcrypto

uv

uv add types-jwcrypto

poetry

poetry add types-jwcrypto

Installing types-jwcrypto

Before you install

Low friction installation with a single runtime dependency on cryptography. Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.

License in practice

Apache-2.0 permissive license allows use in most projects without significant restrictions.

Quickstart

pip install types-jwcrypto

# In your code using jwcrypto:
import jwcrypto.jwt

token = jwcrypto.jwt.JWT(payload=b'{"sub": "user"}')

Requires Python 3.10 or later; jwcrypto library must also be installed separately.

Verify before relying

  • Whether type coverage is complete for all jwcrypto 1.5.8 APIs or if gaps remain.
  • How frequently these stubs are updated relative to jwcrypto releases.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — cryptography
Maintenance actively maintained — 25 days since the last release
Last repo commit
First released
Downloads 570,983/month — #5,953 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: types_jwcrypto-1.5.8.20260720-py3-none-any.whl

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs jwcryptojwcrypto type hintscryptography type checkingmypy jwcrypto annotationsstatic type checking jwt cryptopyright jwcrypto types
type-stubstype-checking

More Cryptography packages