{
    "mode": "pydoc",
    "parameter": "jwt",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/jwt/json",
    "generated": "2026-11-21T06:40:47Z",
    "sections": {
        "NAME": {
            "content": "jwt - JSON Web Token implementation in Python <https://pyjwt.readthedocs.io>\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "algorithms\napijwk\napijws\napijwt\nexceptions\nhelp\njwksetcache\njwksclient\ntypes\nutils\nwarnings\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\njwt.exceptions.PyJWTError\njwt.exceptions.InvalidKeyError\njwt.exceptions.InvalidTokenError\njwt.exceptions.DecodeError\njwt.exceptions.InvalidSignatureError\njwt.exceptions.ExpiredSignatureError\njwt.exceptions.ImmatureSignatureError\njwt.exceptions.InvalidAlgorithmError\njwt.exceptions.InvalidAudienceError\njwt.exceptions.InvalidIssuedAtError\njwt.exceptions.InvalidIssuerError\njwt.exceptions.MissingRequiredClaimError\njwt.exceptions.PyJWKClientError\njwt.exceptions.PyJWKError\njwt.exceptions.PyJWKSetError\nbuiltins.object\njwt.apijwk.PyJWK\njwt.apijwk.PyJWKSet\njwt.apijws.PyJWS\njwt.apijwt.PyJWT\njwt.jwksclient.PyJWKClient\n",
            "subsections": [
                {
                    "name": "class DecodeError",
                    "content": "|  Method resolution order:\n|      DecodeError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class ExpiredSignatureError",
                    "content": "|  Method resolution order:\n|      ExpiredSignatureError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class ImmatureSignatureError",
                    "content": "|  Method resolution order:\n|      ImmatureSignatureError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidAlgorithmError",
                    "content": "|  Method resolution order:\n|      InvalidAlgorithmError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidAudienceError",
                    "content": "|  Method resolution order:\n|      InvalidAudienceError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidIssuedAtError",
                    "content": "|  Method resolution order:\n|      InvalidIssuedAtError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidIssuerError",
                    "content": "|  Method resolution order:\n|      InvalidIssuerError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidKeyError",
                    "content": "|  Method resolution order:\n|      InvalidKeyError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidSignatureError",
                    "content": "|  Method resolution order:\n|      InvalidSignatureError\n|      DecodeError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class InvalidTokenError",
                    "content": "|  Method resolution order:\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class MissingRequiredClaimError",
                    "content": "|  MissingRequiredClaimError(claim: str) -> None\n|\n|  Method resolution order:\n|      MissingRequiredClaimError\n|      InvalidTokenError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self, claim: str) -> None\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  str(self) -> str\n|      Return str(self).\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class PyJWK",
                    "content": "|  PyJWK(jwkdata: 'JWKDict', algorithm: 'str | None' = None) -> 'None'\n|\n|  Methods defined here:\n|\n|  init(self, jwkdata: 'JWKDict', algorithm: 'str | None' = None) -> 'None'\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  fromdict(obj: 'JWKDict', algorithm: 'str | None' = None) -> \"'PyJWK'\"\n|\n|  fromjson(data: 'str', algorithm: 'None' = None) -> \"'PyJWK'\"\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  keyid\n|\n|  keytype\n|\n|  publickeyuse\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables\n|\n|  weakref\n|      list of weak references to the object\n"
                },
                {
                    "name": "class PyJWKClient",
                    "content": "|  PyJWKClient(uri: str, cachekeys: bool = False, maxcachedkeys: int = 16, cachejwkset: bool = True, lifespan: int = 300, headers: Optional[Dict[str, Any]] = None, timeout: int = 30)\n|\n|  Methods defined here:\n|\n|  init(self, uri: str, cachekeys: bool = False, maxcachedkeys: int = 16, cachejwkset: bool = True, lifespan: int = 300, headers: Optional[Dict[str, Any]] = None, timeout: int = 30)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  fetchdata(self) -> Any\n|\n|  getjwkset(self, refresh: bool = False) -> jwt.apijwk.PyJWKSet\n|\n|  getsigningkey(self, kid: str) -> jwt.apijwk.PyJWK\n|\n|  getsigningkeyfromjwt(self, token: str) -> jwt.apijwk.PyJWK\n|\n|  getsigningkeys(self, refresh: bool = False) -> List[jwt.apijwk.PyJWK]\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  matchkid(signingkeys: List[jwt.apijwk.PyJWK], kid: str) -> Optional[jwt.apijwk.PyJWK]\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables\n|\n|  weakref\n|      list of weak references to the object\n"
                },
                {
                    "name": "class PyJWKClientError",
                    "content": "|  Method resolution order:\n|      PyJWKClientError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class PyJWKError",
                    "content": "|  Method resolution order:\n|      PyJWKError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class PyJWKSet",
                    "content": "|  PyJWKSet(keys: 'list[JWKDict]') -> 'None'\n|\n|  Methods defined here:\n|\n|  getitem(self, kid: 'str') -> \"'PyJWK'\"\n|\n|  init(self, keys: 'list[JWKDict]') -> 'None'\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  fromdict(obj: 'dict[str, Any]') -> \"'PyJWKSet'\"\n|\n|  fromjson(data: 'str') -> \"'PyJWKSet'\"\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables\n|\n|  weakref\n|      list of weak references to the object\n"
                },
                {
                    "name": "class PyJWKSetError",
                    "content": "|  Method resolution order:\n|      PyJWKSetError\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from PyJWTError:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class PyJWS",
                    "content": "|  PyJWS(algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None) -> 'None'\n|\n|  Methods defined here:\n|\n|  init(self, algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None) -> 'None'\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  decode(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, detachedpayload: 'bytes | None' = None, kwargs) -> 'Any'\n|\n|  decodecomplete(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, detachedpayload: 'bytes | None' = None, kwargs) -> 'dict[str, Any]'\n|\n|  encode(self, payload: 'bytes', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, jsonencoder: 'type[json.JSONEncoder] | None' = None, ispayloaddetached: 'bool' = False, sortheaders: 'bool' = True) -> 'str'\n|\n|  getalgorithmbyname(self, algname: 'str') -> 'Algorithm'\n|      For a given string name, return the matching Algorithm object.\n|\n|      Example usage:\n|\n|      >>> jwsobj.getalgorithmbyname(\"RS256\")\n|\n|  getalgorithms(self) -> 'list[str]'\n|      Returns a list of supported values for the 'alg' parameter.\n|\n|  getunverifiedheader(self, jwt: 'str | bytes') -> 'dict[str, Any]'\n|      Returns back the JWT header parameters as a dict()\n|\n|      Note: The signature is not verified so the header parameters\n|      should not be fully trusted until signature verification is complete\n|\n|  registeralgorithm(self, algid: 'str', algobj: 'Algorithm') -> 'None'\n|      Registers a new Algorithm for use when creating and verifying tokens.\n|\n|  unregisteralgorithm(self, algid: 'str') -> 'None'\n|      Unregisters an Algorithm for use when creating and verifying tokens\n|      Throws KeyError if algorithm is not registered.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes defined here:\n|\n|  annotations = {'supportedcrit': 'set[str]'}\n|\n|  headertyp = 'JWT'\n"
                },
                {
                    "name": "class PyJWT",
                    "content": "|  PyJWT(options: 'dict[str, Any] | None' = None) -> 'None'\n|\n|  Methods defined here:\n|\n|  init(self, options: 'dict[str, Any] | None' = None) -> 'None'\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  decode(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detachedpayload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, kwargs: 'Any') -> 'Any'\n|\n|  decodecomplete(self, jwt: 'str | bytes', key: 'AllowedPublicKeys | str | bytes' = '', algorithms: 'list[str] | None' = None, options: 'dict[str, Any] | None' = None, verify: 'bool | None' = None, detachedpayload: 'bytes | None' = None, audience: 'str | Iterable[str] | None' = None, issuer: 'str | None' = None, leeway: 'float | timedelta' = 0, kwargs: 'Any') -> 'dict[str, Any]'\n|\n|  encode(self, payload: 'dict[str, Any]', key: 'AllowedPrivateKeys | str | bytes', algorithm: 'str | None' = 'HS256', headers: 'dict[str, Any] | None' = None, jsonencoder: 'type[json.JSONEncoder] | None' = None, sortheaders: 'bool' = True) -> 'str'\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables\n|\n|  weakref\n|      list of weak references to the object\n"
                },
                {
                    "name": "class PyJWTError",
                    "content": "|  Base class for all exceptions\n|\n|  Method resolution order:\n|      PyJWTError\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) class method of builtins.Exception\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  addnote(...)\n|      Exception.addnote(note) --\n|      add a note to the exception\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                }
            ]
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "decode",
                    "content": ""
                },
                {
                    "name": "encode",
                    "content": ""
                },
                {
                    "name": "get_algorithm_by_name",
                    "content": "For a given string name, return the matching Algorithm object.\n\nExample usage:\n\n>>> jwsobj.getalgorithmbyname(\"RS256\")\n"
                },
                {
                    "name": "get_unverified_header",
                    "content": "Returns back the JWT header parameters as a dict()\n\nNote: The signature is not verified so the header parameters\nshould not be fully trusted until signature verification is complete\n"
                },
                {
                    "name": "register_algorithm",
                    "content": "Registers a new Algorithm for use when creating and verifying tokens.\n"
                },
                {
                    "name": "unregister_algorithm",
                    "content": "Unregisters an Algorithm for use when creating and verifying tokens\nThrows KeyError if algorithm is not registered.\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['PyJWS', 'PyJWT', 'PyJWKClient', 'PyJWK', 'PyJWKSet', 'deco...\ncopyright = 'Copyright 2015-2022 José Padilla'\ndescription = 'JSON Web Token implementation in Python'\nemail = 'hello@jpadilla.com'\nlicense = 'MIT'\ntitle = 'PyJWT'\nuri = 'https://pyjwt.readthedocs.io'\nurl = 'https://pyjwt.readthedocs.io'\n",
            "subsections": []
        },
        "VERSION": {
            "content": "2.7.0\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "José Padilla\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/jwt/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "jwt - JSON Web Token implementation in Python <https://pyjwt.readthedocs.io>",
    "flags": [],
    "examples": [],
    "see_also": []
}