PyJWT is a Python library which allows you to encode and decode JSON Web You can install pyjwt with pip : See Usage Examples for more examples..