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). observed · 2026-08-28
Health v2 · maintenance only
79/100
- Activity 93
- Release rhythm 48
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 286.0
- age_days: 2837
- days_rel: 133
- days_push: 42
- n_releases_24m: 3
Adoption not part of the score
1049 stars · 33 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A lightweight, dependency-free Python library for defining and applying HTTP security headers across Python web frameworks via ASGI/WSGI middleware or response hooks. It offers safe default presets, builders for complex headers like Content-Security-Policy, and integrations for FastAPI, Django, Flask, and Shiny.
Use cases
- add security headers to a FastAPI app
- set Content-Security-Policy in Django
- apply HSTS headers across a Flask application
- centralize security header configuration instead of copy-pasting header strings
- add security headers via ASGI or WSGI middleware
- configure Permissions-Policy and Cross-Origin headers in Python web apps
When to choose
- you want one reusable security-header policy across multiple Python frameworks
- you prefer safe defaults with presets you can customize
- you need CSP or Permissions-Policy builders rather than hand-written header strings
When to avoid
- you need a full web application firewall or request-level attack detection
- headers are already managed centrally by your reverse proxy or CDN
- you need security tooling beyond HTTP response headers
Facets
library · maturity active
security middleware http-server security web-development backend python security-headers content-security-policy asgi wsgi fastapi django flask strict-transport-security http-headers web-server
4 sources
- readme: https://github.com/TypeError/secure · fetched 2026-08-28 · 33ae88be81d9
- homepage: https://typeerror.com/secure/ · fetched 2026-08-29 · 8981d6176506
- registry_pypi: https://pypi.org/pypi/secure/json · fetched 2026-08-29 · 4458cfa53f55
- site_page: https://typeerror.com/secure/changelog.html · fetched 2026-08-29 · d1d1400eaddd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TypeError/secure | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="TypeError/secure")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem