Skip to content
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).

1.9M 1K 36
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.1M 13 0
matblack81
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

3K 2 0
Ryarkhewas
domain-security-check

Passive security audit of domain names: website headers (Mozilla HTTP Observatory scoring), TLS, email (SPF, DKIM, DMARC, MTA-STS) and DNS (DNSSEC, CAA). HTML and PDF reports graded A+ to F, for one domain or a whole list.

1K 0 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

645 24 2
dethos
inlinehashes

Hash generator for HTML inline styles and scripts

257 8 1
quantum5
django-csp-advanced

A powerful CSP middleware for Django.

97 1 0
martinezpl
csp-scan

Constructs strict Content-Security-Policy header after scanning all HTML files in a directory

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