content-security-policy
Modern Python library for HTTP security headers with safe defaults, configurable presets, and first-class ASGI/WSGI middleware (FastAPI, Django, Flask, Shiny, and more).
Hash generator for HTML inline styles and scripts
Provides a powerful interface to CSP headers for Django applications.
Scan HTML files in directory and build CSP (content-security-policy) header