__init__.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. from .api_jwk import PyJWK, PyJWKSet
  2. from .api_jws import (
  3. PyJWS,
  4. get_unverified_header,
  5. register_algorithm,
  6. unregister_algorithm,
  7. )
  8. from .api_jwt import PyJWT, decode, encode
  9. from .exceptions import (
  10. DecodeError,
  11. ExpiredSignatureError,
  12. ImmatureSignatureError,
  13. InvalidAlgorithmError,
  14. InvalidAudienceError,
  15. InvalidIssuedAtError,
  16. InvalidIssuerError,
  17. InvalidKeyError,
  18. InvalidSignatureError,
  19. InvalidTokenError,
  20. MissingRequiredClaimError,
  21. PyJWKClientError,
  22. PyJWKError,
  23. PyJWKSetError,
  24. PyJWTError,
  25. )
  26. from .jwks_client import PyJWKClient
  27. __version__ = "2.4.0"
  28. __title__ = "PyJWT"
  29. __description__ = "JSON Web Token implementation in Python"
  30. __url__ = "https://pyjwt.readthedocs.io"
  31. __uri__ = __url__
  32. __doc__ = f"{__description__} <{__uri__}>"
  33. __author__ = "José Padilla"
  34. __email__ = "hello@jpadilla.com"
  35. __license__ = "MIT"
  36. __copyright__ = "Copyright 2015-2022 José Padilla"
  37. __all__ = [
  38. "PyJWS",
  39. "PyJWT",
  40. "PyJWKClient",
  41. "PyJWK",
  42. "PyJWKSet",
  43. "decode",
  44. "encode",
  45. "get_unverified_header",
  46. "register_algorithm",
  47. "unregister_algorithm",
  48. # Exceptions
  49. "DecodeError",
  50. "ExpiredSignatureError",
  51. "ImmatureSignatureError",
  52. "InvalidAlgorithmError",
  53. "InvalidAudienceError",
  54. "InvalidIssuedAtError",
  55. "InvalidIssuerError",
  56. "InvalidKeyError",
  57. "InvalidSignatureError",
  58. "InvalidTokenError",
  59. "MissingRequiredClaimError",
  60. "PyJWKClientError",
  61. "PyJWKError",
  62. "PyJWKSetError",
  63. "PyJWTError",
  64. ]