secure.py

version Python 3 license black

secure.py 🔒 is a lightweight package that adds optional security headers and cookie attributes for Python web frameworks.

Install

pip:

$ pip install secure

Pipenv:

$ pipenv install secure

After installing secure.py:

from secure import SecureHeaders, SecureCookie

secure_headers = SecureHeaders()
secure_cookie = SecureCookie()

Indices and tables