{"library":"fastapi-csrf-protect","type":"library","category":null,"description":"FastAPI CSRF Protect is a FastAPI extension providing stateless Cross-Site Request Forgery (XSRF) protection. It implements the Double Submit Cookie mitigation pattern, similar to `flask-wtf` and inspired by `fastapi-jwt-auth`. The library is designed to be lightweight and easy to use. The current version is 1.0.7, requiring Python 3.9 or newer, and it maintains an active release cadence.","language":"python","status":"active","version":"1.0.7","tags":["fastapi","csrf","security","xsrf","double-submit-cookie","web-security"],"last_verified":"Tue May 26","install":[{"cmd":"pip install fastapi-csrf-protect","imports":["from fastapi_csrf_protect import CsrfProtect","from fastapi_csrf_protect.exceptions import CsrfProtectError","from fastapi_csrf_protect.flexible import CsrfProtect"]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/fastapi-csrf-protect/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.9,"avg_import_s":0.73,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/fastapi-csrf-protect/compatibility"}}