pydoc > jwt

📛 NAME

jwt - JSON Web Token implementation in Python <https://pyjwt.readthedocs.io>

🚀 Quick Reference

Use CaseCommandDescription
🔑 Encode a JWTjwt.encode(payload, key, algorithm='HS256')Create a signed JWT token
🔓 Decode a JWTjwt.decode(token, key, algorithms=['HS256'])Verify and decode a JWT token
📄 Get unverified headerjwt.get_unverified_header(token)Extract header without verification
🔗 Fetch signing key from JWKSPyJWKClient(uri).get_signing_key_from_jwt(token)Retrieve key from JWK Set
⚙️ Register custom algorithmjwt.register_algorithm(alg_id, alg_obj)Add a new algorithm for signing

📦 PACKAGE CONTENTS

📚 CLASSES

🔍 Exception Hierarchy

🔧 Exception Classes Detail

All exception classes inherit from PyJWTError and share the standard methods from builtins.Exception and builtins.BaseException (e.g., __init__, __str__, with_traceback). Only unique or overridden members are listed below.

📌 PyJWTError

Base class for all exceptions

📌 InvalidKeyError

Inherits from PyJWTError

📌 InvalidTokenError

Inherits from PyJWTError

📌 DecodeError

Inherits from InvalidTokenError

📌 InvalidSignatureError

Inherits from DecodeError

📌 ExpiredSignatureError

Inherits from InvalidTokenError

📌 ImmatureSignatureError

Inherits from InvalidTokenError

📌 InvalidAlgorithmError

Inherits from InvalidTokenError

📌 InvalidAudienceError

Inherits from InvalidTokenError

📌 InvalidIssuedAtError

Inherits from InvalidTokenError

📌 InvalidIssuerError

Inherits from InvalidTokenError

📌 MissingRequiredClaimError

Inherits from InvalidTokenError

📌 PyJWKClientError

Inherits from PyJWTError

📌 PyJWKError

Inherits from PyJWTError

📌 PyJWKSetError

Inherits from PyJWTError

🔧 Non-Exception Classes

📌 PyJWK

PyJWK(jwk_data, algorithm=None)

📌 PyJWKClient

PyJWKClient(uri: str, cache_keys: bool = True, max_cached_keys: int = 16)

📌 PyJWKSet

PyJWKSet(keys)

📌 PyJWS

PyJWS(algorithms=None, options=None)

📌 PyJWT

PyJWT(options=None)

⚡ FUNCTIONS

📊 DATA

📦 VERSION

2.3.0

✍️ AUTHOR

José Padilla

📁 FILE

/usr/lib/python3/dist-packages/jwt/__init__.py

jwt
📛 NAME 🚀 Quick Reference 📦 PACKAGE CONTENTS 📚 CLASSES
🔍 Exception Hierarchy 🔧 Exception Classes Detail 🔧 Non-Exception Classes
⚡ FUNCTIONS 📊 DATA 📦 VERSION ✍️ AUTHOR 📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 18:51 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^