This is an initial implementation of PAST: Platform-Agnostic Security Tokens for Python.
This is not yet production-ready; use at your own risk.
from pypast import encode_auth
token = encode_auth(payload, key, footer)
from pypast import decode
payload, footer = decode(token, key)