itsdangerous

Various helpers to pass data to untrusted environments and back.

Here are some articles that you may find helpful