{"library":"starlette-csrf","type":"library","category":null,"description":"Starlette-CSRF is an active Python middleware designed for Starlette and FastAPI applications to mitigate Cross-Site Request Forgery (CSRF) attacks. It implements the Double Submit Cookie technique, providing protection by requiring a secret value to be sent in both a cookie and a request header for unsafe HTTP methods. The library is currently at version 3.0.0 and maintains a steady release cadence, with the latest major update focusing on Python version compatibility and argument handling.","language":"python","status":"active","version":"3.0.0","tags":["starlette","fastapi","csrf","security","middleware","asgi"],"install":[{"cmd":"pip install starlette-csrf","imports":["from starlette_csrf import CSRFMiddleware"]}],"homepage":null,"github":"https://github.com/frankie567/starlette-csrf","docs":"https://github.com/frankie567/starlette-csrf","changelog":null,"pypi":"https://pypi.org/project/starlette-csrf/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2,"avg_import_s":0.32,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/starlette-csrf/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}