Skip to content

pyjwt 2.12.1

Version history | Download JSON

  • PyPI https://pypi.org/project/pyjwt/
    Repository https://github.com/jpadilla/pyjwt

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 337
        "Any" : 14
        "Untyped" : 21
    • 94.4% coverage
    • 90.6% coverage (strict)
    • 372 typable
      • 337 typed
      • 21 untyped
      • 14 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 32
        "classes" : 295
        "other" : 9
    • 15 functions (+0 overloads)
      • 17 parameters
    • 38 classes
      • 99 methods (+5 overloads)
        • 193 parameters
      • 3 properties
    • 12 modules
      • 9 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
jwt 0.0% 0.0% 0 0
jwt.algorithms 94.9% 88.3% 137 6
jwt.api_jwk 80.6% 80.6% 31 0
jwt.api_jws 100.0% 96.2% 53 0
jwt.api_jwt 100.0% 97.5% 80 0
jwt.exceptions 75.0% 75.0% 4 0
jwt.help 100.0% 100.0% 2 0
jwt.jwk_set_cache 87.5% 87.5% 8 0
jwt.jwks_client 77.8% 74.1% 27 0
jwt.types 100.0% 100.0% 1 0
jwt.utils 100.0% 100.0% 29 0
jwt.warnings 0.0% 0.0% 0 0

Incomplete Annotations

jwt.algorithms (7 missing, 9 any)

Symbol Typable Typed Any
attr HMACAlgorithm.hash_alg 1 0 0
meth Algorithm.prepare_key 2 2 2
meth Algorithm.sign 3 3 1
meth Algorithm.verify 4 4 1
meth Algorithm.to_jwk 3 3 1
meth Algorithm.from_jwk 2 2 1
meth Algorithm.check_key_length 2 2 1
attr RSAAlgorithm._crypto_key_types 1 0 0
attr RSAAlgorithm.hash_alg 1 0 0
attr ECAlgorithm._crypto_key_types 1 0 0
attr ECAlgorithm.hash_alg 1 0 0
attr ECAlgorithm.expected_curve 1 0 0
meth OKPAlgorithm.init 2 2 1
attr OKPAlgorithm._crypto_key_types 1 0 0
meth NoneAlgorithm.to_jwk 3 3 1

jwt.api_jwk (6 missing, 0 any)

Symbol Typable Typed Any
attr PyJWK.algorithm_name 1 0 0
attr PyJWK.key 1 0 0
attr PyJWK.Algorithm 1 0 0
meth PyJWTSetWithTimestamp.init 2 1 0
attr PyJWTSetWithTimestamp.jwk_set 1 0 0
attr PyJWTSetWithTimestamp.timestamp 1 0 0

jwt.api_jws (0 missing, 2 any)

Symbol Typable Typed Any
meth PyJWS.decode 7 7 1
meth PyJWS._validate_kid 2 2 1

jwt.api_jwt (0 missing, 2 any)

Symbol Typable Typed Any
meth PyJWT.decode_complete 12 12 1
meth PyJWT.decode 12 12 1

jwt.exceptions (1 missing, 0 any)

Symbol Typable Typed Any
attr MissingRequiredClaimError.claim 1 0 0

jwt.jwk_set_cache (1 missing, 0 any)

Symbol Typable Typed Any
attr JWKSetCache.lifespan 1 0 0

jwt.jwks_client (6 missing, 1 any)

Symbol Typable Typed Any
meth PyJWKClient.init 9 8 0
meth PyJWKClient.fetch_data 1 1 1
attr PyJWKClient.uri 1 0 0
attr PyJWKClient.headers 1 0 0
attr PyJWKClient.timeout 1 0 0
attr PyJWKClient.ssl_context 1 0 0
attr PyJWKClient.get_signing_key 1 0 0

Type-Ignore Comments

Flavor Count
type: ignore[misc] 6