__init__.py 810 B

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. # flake8: noqa
  3. """
  4. JSON Web Token implementation
  5. Minimum implementation based on this spec:
  6. http://self-issued.info/docs/draft-jones-json-web-token-01.html
  7. """
  8. __title__ = 'pyjwt'
  9. __version__ = '1.7.1'
  10. __author__ = 'José Padilla'
  11. __license__ = 'MIT'
  12. __copyright__ = 'Copyright 2015-2018 José Padilla'
  13. from .api_jwt import (
  14. encode, decode, register_algorithm, unregister_algorithm,
  15. get_unverified_header, PyJWT
  16. )
  17. from .api_jws import PyJWS
  18. from .exceptions import (
  19. InvalidTokenError, DecodeError, InvalidAlgorithmError,
  20. InvalidAudienceError, ExpiredSignatureError, ImmatureSignatureError,
  21. InvalidIssuedAtError, InvalidIssuerError, ExpiredSignature,
  22. InvalidAudience, InvalidIssuer, MissingRequiredClaimError,
  23. InvalidSignatureError,
  24. PyJWTError,
  25. )