Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/jwt/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

16 statements  

1from .api_jwk import PyJWK, PyJWKSet 

2from .api_jws import ( 

3 PyJWS, 

4 get_algorithm_by_name, 

5 get_unverified_header, 

6 register_algorithm, 

7 unregister_algorithm, 

8) 

9from .api_jwt import PyJWT, decode, decode_complete, encode 

10from .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) 

28from .jwks_client import PyJWKClient 

29 

30__version__ = "2.10.1" 

31 

32__title__ = "PyJWT" 

33__description__ = "JSON Web Token implementation in Python" 

34__url__ = "https://pyjwt.readthedocs.io" 

35__uri__ = __url__ 

36__doc__ = f"{__description__} <{__uri__}>" 

37 

38__author__ = "José Padilla" 

39__email__ = "hello@jpadilla.com" 

40 

41__license__ = "MIT" 

42__copyright__ = "Copyright 2015-2022 José Padilla" 

43 

44 

45__all__ = [ 

46 "PyJWS", 

47 "PyJWT", 

48 "PyJWKClient", 

49 "PyJWK", 

50 "PyJWKSet", 

51 "decode", 

52 "decode_complete", 

53 "encode", 

54 "get_unverified_header", 

55 "register_algorithm", 

56 "unregister_algorithm", 

57 "get_algorithm_by_name", 

58 # Exceptions 

59 "DecodeError", 

60 "ExpiredSignatureError", 

61 "ImmatureSignatureError", 

62 "InvalidAlgorithmError", 

63 "InvalidAudienceError", 

64 "InvalidIssuedAtError", 

65 "InvalidIssuerError", 

66 "InvalidKeyError", 

67 "InvalidSignatureError", 

68 "InvalidTokenError", 

69 "MissingRequiredClaimError", 

70 "PyJWKClientConnectionError", 

71 "PyJWKClientError", 

72 "PyJWKError", 

73 "PyJWKSetError", 

74 "PyJWTError", 

75]