__init__.py 1.7 KB

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