PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Content Security Policy Python Packages

Python packages with the GitHub topic content-security-policy. Sorted by monthly downloads, with stars and forks.
TypeError
secure

Modern Python library for HTTP security headers with safe defaults, configurable presets, and first-class ASGI/WSGI middleware (FastAPI, Django, Flask, Shiny, and more).

2.2M 1K 35
sampsonc
csp-toolkit

Content Security Policy analysis, bypass detection, and CI gating. 21 weakness checks with A+ to F grading, 79 known bypass domains, SARIF output, and a GitHub Action.

1.6M 11 0
mat81black
fastapi-csp-docs

CSP-safe replacements for FastAPI's built-in /docs, /redoc, and OAuth2 redirect endpoints, with no inline script or style, so a strict Content-Security-Policy still works

2K 2 0
aletgdev
fastapi-security-headers

🛡️ The missing security headers middleware for FastAPI. Protect your API against XSS, clickjacking, MIME sniffing, and OWASP Top 10 web vulnerabilities with zero-config defaults

950 22 0
dethos
inlinehashes

Hash generator for HTML inline styles and scripts

198 8 1
quantum5
django-csp-advanced

A powerful CSP middleware for Django.

91 1 0
martinezpl
csp-scan

Scan HTML files in directory and build CSP (content-security-policy) header

55 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology