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

16 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:23 +0000

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, 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 PyJWKClientError, 

23 PyJWKError, 

24 PyJWKSetError, 

25 PyJWTError, 

26) 

27from .jwks_client import PyJWKClient 

28 

29__version__ = "2.7.0" 

30 

31__title__ = "PyJWT" 

32__description__ = "JSON Web Token implementation in Python" 

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

34__uri__ = __url__ 

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

36 

37__author__ = "José Padilla" 

38__email__ = "hello@jpadilla.com" 

39 

40__license__ = "MIT" 

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

42 

43 

44__all__ = [ 

45 "PyJWS", 

46 "PyJWT", 

47 "PyJWKClient", 

48 "PyJWK", 

49 "PyJWKSet", 

50 "decode", 

51 "encode", 

52 "get_unverified_header", 

53 "register_algorithm", 

54 "unregister_algorithm", 

55 "get_algorithm_by_name", 

56 # Exceptions 

57 "DecodeError", 

58 "ExpiredSignatureError", 

59 "ImmatureSignatureError", 

60 "InvalidAlgorithmError", 

61 "InvalidAudienceError", 

62 "InvalidIssuedAtError", 

63 "InvalidIssuerError", 

64 "InvalidKeyError", 

65 "InvalidSignatureError", 

66 "InvalidTokenError", 

67 "MissingRequiredClaimError", 

68 "PyJWKClientError", 

69 "PyJWKError", 

70 "PyJWKSetError", 

71 "PyJWTError", 

72]