pydoc > jwt

Help on package jwt:

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

PACKAGE CONTENTS
    algorithms
    api_jwk
    api_jws
    api_jwt
    exceptions
    help
    jwk_set_cache
    jwks_client
    types
    utils
    warnings

CLASSES
    builtins.Exception(builtins.BaseException)
        jwt.exceptions.PyJWTError
            jwt.exceptions.InvalidKeyError
            jwt.exceptions.InvalidTokenError
                jwt.exceptions.DecodeError
                    jwt.exceptions.InvalidSignatureError
                jwt.exceptions.ExpiredSignatureError
                jwt.exceptions.ImmatureSignatureError
                jwt.exceptions.InvalidAlgorithmError
                jwt.exceptions.InvalidAudienceError
                jwt.exceptions.InvalidIssuedAtError
                jwt.exceptions.InvalidIssuerError
                jwt.exceptions.MissingRequiredClaimError
            jwt.exceptions.PyJWKClientError
            jwt.exceptions.PyJWKError
            jwt.exceptions.PyJWKSetError
    builtins.object
        jwt.api_jwk.PyJWK
        jwt.api_jwk.PyJWKSet
        jwt.api_jws.PyJWS
        jwt.api_jwt.PyJWT
        jwt.jwks_client.PyJWKClient

    class DecodeError(InvalidTokenError)
     |  Method resolution order:
     |      DecodeError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class ExpiredSignatureError(InvalidTokenError)
     |  Method resolution order:
     |      ExpiredSignatureError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class ImmatureSignatureError(InvalidTokenError)
     |  Method resolution order:
     |      ImmatureSignatureError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidAlgorithmError(InvalidTokenError)
     |  Method resolution order:
     |      InvalidAlgorithmError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidAudienceError(InvalidTokenError)
     |  Method resolution order:
     |      InvalidAudienceError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidIssuedAtError(InvalidTokenError)
     |  Method resolution order:
     |      InvalidIssuedAtError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidIssuerError(InvalidTokenError)
     |  Method resolution order:
     |      InvalidIssuerError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidKeyError(PyJWTError)
     |  Method resolution order:
     |      InvalidKeyError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidSignatureError(DecodeError)
     |  Method resolution order:
     |      InvalidSignatureError
     |      DecodeError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class InvalidTokenError(PyJWTError)
     |  Method resolution order:
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class MissingRequiredClaimError(InvalidTokenError)
     |  MissingRequiredClaimError(claim: str) -> None
     |
     |  Method resolution order:
     |      MissingRequiredClaimError
     |      InvalidTokenError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __init__(self, claim: str) -> None
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  __str__(self) -> str
     |      Return str(self).
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class PyJWK(builtins.object)
     |  PyJWK(jwk_data: 'JWKDict', algorithm: 'str | None' = None) -> 'None'
     |
     |  Methods defined here:
     |
     |  __init__(self, jwk_data: 'JWKDict', algorithm: 'str | None' = None) -> 'None'
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods defined here:
     |
     |  from_dict(obj: 'JWKDict', algorithm: 'str | None' = None) -> "'PyJWK'"
     |
     |  from_json(data: 'str', algorithm: 'None' = None) -> "'PyJWK'"
     |
     |  ----------------------------------------------------------------------
     |  Readonly properties defined here:
     |
     |  key_id
     |
     |  key_type
     |
     |  public_key_use
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object

    class PyJWKClient(builtins.object)
     |  PyJWKClient(uri: str, cache_keys: bool = False, max_cached_keys: int = 16, cache_jwk_set: bool = True, lifespan: int = 300, headers: Optional[Dict[str, Any]] = None, timeout: int = 30)
     |
     |  Methods defined here:
     |
     |  __init__(self, uri: str, cache_keys: bool = False, max_cached_keys: int = 16, cache_jwk_set: bool = True, lifespan: int = 300, headers: Optional[Dict[str, Any]] = None, timeout: int = 30)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  fetch_data(self) -> Any
     |
     |  get_jwk_set(self, refresh: bool = False) -> jwt.api_jwk.PyJWKSet
     |
     |  get_signing_key(self, kid: str) -> jwt.api_jwk.PyJWK
     |
     |  get_signing_key_from_jwt(self, token: str) -> jwt.api_jwk.PyJWK
     |
     |  get_signing_keys(self, refresh: bool = False) -> List[jwt.api_jwk.PyJWK]
     |
     |  ----------------------------------------------------------------------
     |  Static methods defined here:
     |
     |  match_kid(signing_keys: List[jwt.api_jwk.PyJWK], kid: str) -> Optional[jwt.api_jwk.PyJWK]
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object

    class PyJWKClientError(PyJWTError)
     |  Method resolution order:
     |      PyJWKClientError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class PyJWKError(PyJWTError)
     |  Method resolution order:
     |      PyJWKError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class PyJWKSet(builtins.object)
     |  PyJWKSet(keys: 'list[JWKDict]') -> 'None'
     |
     |  Methods defined here:
     |
     |  __getitem__(self, kid: 'str') -> "'PyJWK'"
     |
     |  __init__(self, keys: 'list[JWKDict]') -> 'None'
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods defined here:
     |
     |  from_dict(obj: 'dict[str, Any]') -> "'PyJWKSet'"
     |
     |  from_json(data: 'str') -> "'PyJWKSet'"
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object

    class PyJWKSetError(PyJWTError)
     |  Method resolution order:
     |      PyJWKSetError
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors inherited from PyJWTError:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

    class PyJWS(builtins.object)
     |  PyJWS(algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None) -> 'None'
     |
     |  Methods defined here:
     |
     |  __init__(self, algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None) -> 'None'
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  decode(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, detached_payload: 'bytes | None' = None, **kwargs) -> 'Any'
     |
     |  decode_complete(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, detached_payload: 'bytes | None' = None, **kwargs) -> 'dict[str, Any]'
     |
     |  encode(self, payload: 'bytes', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, json_encoder: 'type[json.JSONEncoder] | None' = None, is_payload_detached: 'bool' = False, sort_headers: 'bool' = True) -> 'str'
     |
     |  get_algorithm_by_name(self, alg_name: 'str') -> 'Algorithm'
     |      For a given string name, return the matching Algorithm object.
     |
     |      Example usage:
     |
     |      >>> jws_obj.get_algorithm_by_name("RS256")
     |
     |  get_algorithms(self) -> 'list[str]'
     |      Returns a list of supported values for the 'alg' parameter.
     |
     |  get_unverified_header(self, jwt: 'str | bytes') -> 'dict[str, Any]'
     |      Returns back the JWT header parameters as a dict()
     |
     |      Note: The signature is not verified so the header parameters
     |      should not be fully trusted until signature verification is complete
     |
     |  register_algorithm(self, alg_id: 'str', alg_obj: 'Algorithm') -> 'None'
     |      Registers a new Algorithm for use when creating and verifying tokens.
     |
     |  unregister_algorithm(self, alg_id: 'str') -> 'None'
     |      Unregisters an Algorithm for use when creating and verifying tokens
     |      Throws KeyError if algorithm is not registered.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |
     |  __annotations__ = {'_supported_crit': 'set[str]'}
     |
     |  header_typ = 'JWT'

    class PyJWT(builtins.object)
     |  PyJWT(options: 'dict[str, Any] | None' = None) -> 'None'
     |
     |  Methods defined here:
     |
     |  __init__(self, options: 'dict[str, Any] | None' = None) -> 'None'
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  decode(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detached_payload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, **kwargs: 'Any') -> 'Any'
     |
     |  decode_complete(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detached_payload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, **kwargs: 'Any') -> 'dict[str, Any]'
     |
     |  encode(self, payload: 'dict[str, Any]', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, json_encoder: 'type[json.JSONEncoder] | None' = None, sort_headers: 'bool' = True) -> 'str'
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |
     |  __dict__
     |      dictionary for instance variables
     |
     |  __weakref__
     |      list of weak references to the object

    class PyJWTError(builtins.Exception)
     |  Base class for all exceptions
     |
     |  Method resolution order:
     |      PyJWTError
     |      builtins.Exception
     |      builtins.BaseException
     |      builtins.object
     |
     |  Data descriptors defined here:
     |
     |  __weakref__
     |      list of weak references to the object
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.Exception:
     |
     |  __init__(self, /, *args, **kwargs)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.Exception:
     |
     |  __new__(*args, **kwargs) class method of builtins.Exception
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.BaseException:
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __reduce__(...)
     |      Helper for pickle.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __setstate__(...)
     |
     |  __str__(self, /)
     |      Return str(self).
     |
     |  add_note(...)
     |      Exception.add_note(note) --
     |      add a note to the exception
     |
     |  with_traceback(...)
     |      Exception.with_traceback(tb) --
     |      set self.__traceback__ to tb and return self.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.BaseException:
     |
     |  __cause__
     |      exception cause
     |
     |  __context__
     |      exception context
     |
     |  __dict__
     |
     |  __suppress_context__
     |
     |  __traceback__
     |
     |  args

FUNCTIONS
    decode(jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detached_payload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, **kwargs: 'Any') -> 'Any' method of jwt.api_jwt.PyJWT instance

    encode(payload: 'dict[str, Any]', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, json_encoder: 'type[json.JSONEncoder] | None' = None, sort_headers: 'bool' = True) -> 'str' method of jwt.api_jwt.PyJWT instance

    get_algorithm_by_name(alg_name: 'str') -> 'Algorithm' method of jwt.api_jws.PyJWS instance
        For a given string name, return the matching Algorithm object.

        Example usage:

        >>> jws_obj.get_algorithm_by_name("RS256")

    get_unverified_header(jwt: 'str | bytes') -> 'dict[str, Any]' method of jwt.api_jws.PyJWS instance
        Returns back the JWT header parameters as a dict()

        Note: The signature is not verified so the header parameters
        should not be fully trusted until signature verification is complete

    register_algorithm(alg_id: 'str', alg_obj: 'Algorithm') -> 'None' method of jwt.api_jws.PyJWS instance
        Registers a new Algorithm for use when creating and verifying tokens.

    unregister_algorithm(alg_id: 'str') -> 'None' method of jwt.api_jws.PyJWS instance
        Unregisters an Algorithm for use when creating and verifying tokens
        Throws KeyError if algorithm is not registered.

DATA
    __all__ = ['PyJWS', 'PyJWT', 'PyJWKClient', 'PyJWK', 'PyJWKSet', 'deco...
    __copyright__ = 'Copyright 2015-2022 José Padilla'
    __description__ = 'JSON Web Token implementation in Python'
    __email__ = 'hello AT jpadilla.com'
    __license__ = 'MIT'
    __title__ = 'PyJWT'
    __uri__ = 'https://pyjwt.readthedocs.io'
    __url__ = 'https://pyjwt.readthedocs.io'

VERSION
    2.7.0

AUTHOR
    José Padilla

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


jwt □✕
NAME PACKAGE CONTENTS CLASSES
class DecodeError(InvalidTokenError) class ExpiredSignatureError(InvalidTokenError) class ImmatureSignatureError(InvalidTokenError) class InvalidAlgorithmError(InvalidTokenError) class InvalidAudienceError(InvalidTokenError) class InvalidIssuedAtError(InvalidTokenError) class InvalidIssuerError(InvalidTokenError) class InvalidKeyError(PyJWTError) class InvalidSignatureError(DecodeError) class InvalidTokenError(PyJWTError) class MissingRequiredClaimError(InvalidTokenError) class PyJWK(builtins.object) class PyJWKClient(builtins.object) class PyJWKClientError(PyJWTError) class PyJWKError(PyJWTError) class PyJWKSet(builtins.object) class PyJWKSetError(PyJWTError) class PyJWS(builtins.object) class PyJWT(builtins.object) class PyJWTError(builtins.Exception)
FUNCTIONS
decode(jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detached_payload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, **kwargs: 'Any') -> 'Any' method of jwt.api_jwt.PyJWT instance encode(payload: 'dict[str, Any]', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, json_encoder: 'type[json.JSONEncoder] | None' = None, sort_headers: 'bool' = True) -> 'str' method of jwt.api_jwt.PyJWT instance get_algorithm_by_name(alg_name: 'str') -> 'Algorithm' method of jwt.api_jws.PyJWS instance get_unverified_header(jwt: 'str | bytes') -> 'dict[str, Any]' method of jwt.api_jws.PyJWS instance register_algorithm(alg_id: 'str', alg_obj: 'Algorithm') -> 'None' method of jwt.api_jws.PyJWS instance unregister_algorithm(alg_id: 'str') -> 'None' method of jwt.api_jws.PyJWS instance
DATA VERSION AUTHOR FILE

Generated by phpman v4.12.29 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-12-03 06:37 @216.73.216.10
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_^