Debian Codegraph @

jwt/__init__.py

raw
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 from .warnings import InsecureKeyLengthWarning
30
31 __version__ = "2.13.0"
32
33 __title__ = "PyJWT"
34 __description__ = "JSON Web Token implementation in Python"
35 __url__ = "https://pyjwt.readthedocs.io"
36 __uri__ = __url__
37 __doc__ = f"{__description__} <{__uri__}>"
38
39 __author__ = "José Padilla"
40 __email__ = "[email protected]"
41
42 __license__ = "MIT"
43 __copyright__ = "Copyright 2015-2026 José Padilla"
44
45
46 __all__ = [
47 "PyJWS",
48 "PyJWT",
49 "PyJWKClient",
50 "PyJWK",
51 "PyJWKSet",
52 "decode",
53 "decode_complete",
54 "encode",
55 "get_unverified_header",
56 "register_algorithm",
57 "unregister_algorithm",
58 "get_algorithm_by_name",
59 # Warnings
60 "InsecureKeyLengthWarning",
61 # Exceptions
62 "DecodeError",
63 "ExpiredSignatureError",
64 "ImmatureSignatureError",
65 "InvalidAlgorithmError",
66 "InvalidAudienceError",
67 "InvalidIssuedAtError",
68 "InvalidIssuerError",
69 "InvalidKeyError",
70 "InvalidSignatureError",
71 "InvalidTokenError",
72 "MissingRequiredClaimError",
73 "PyJWKClientConnectionError",
74 "PyJWKClientError",
75 "PyJWKError",
76 "PyJWKSetError",
77 "PyJWTError",
78 ]