Skip to content

Add fastapi-guard - #130

Open
rennf93 wants to merge 1 commit into
timofurrer:mainfrom
rennf93:add-fastapi-guard
Open

rennf93 wants to merge 1 commit into
timofurrer:mainfrom
rennf93:add-fastapi-guard

Conversation

@rennf93

@rennf93 rennf93 commented Oct 16, 2026 •

Copy link
Copy Markdown

What is this project?

fastapi-guard is async security middleware for FastAPI and Starlette. I'm the author. Features:

  • IP and country allow and deny lists, user-agent filtering and cloud-provider blocking
  • Rate limiting with automatic IP bans, with state shared across workers through async Redis
  • SQL injection, XSS and other attack pattern detection on the request path, query, headers and body
  • Per-route rules through decorators

Why is it awesome?

  • Fully async: every check runs in the event loop without blocking the request, including the Redis-backed rate limits and bans.
  • One middleware covers what otherwise takes several separate packages.
  • Maintained and in production use: 65 releases (latest v8.1.1 on 2026-10-15) and about 62,000 PyPI downloads last month (pypistats).

Project background: Guard Core's first library is fastapi-guard, public since August 2024 (first PyPI release, 0.1.0, on 2024-08-26). It has 825 GitHub stars, 65 releases and about 62,000 PyPI downloads in the last month (pypistats.org). The framework-agnostic engines and the adapters for other frameworks and languages came later and run the same detection rules, checked in CI against shared conformance fixtures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant