Spaces:
Sleeping
Sleeping
Download app/core/security.py from shakauthossain/deploymate: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/shakauthossain/deploymate/resolve/main/app/core/security.py
- Command line
-
hf download hf://spaces/shakauthossain/deploymate/app/core/security.py
-
curl -L -o security.py https://huggingface.co/spaces/shakauthossain/deploymate/resolve/main/app/core/security.py
319 Bytes
| """ | |
| Security utilities for the DevOps Toolkit API. | |
| """ | |
| from slowapi import Limiter | |
| from slowapi.middleware import SlowAPIMiddleware | |
| from slowapi.util import get_remote_address | |
| # Rate limiter instance | |
| limiter = Limiter(key_func=get_remote_address) | |
| # Rate limiting middleware | |
| rate_limit_middleware = SlowAPIMiddleware | |