Skip to content

Module stac_fastapi.core.rate_limit

Rate limiting middleware.

Variables

logger

Functions

get_limiter

def get_limiter(
    key_func=<function get_remote_address at 0x7fd7ddad1310>
)

Create and return a Limiter instance for rate limiting.

setup_rate_limit

def setup_rate_limit(
    app: fastapi.applications.FastAPI,
    rate_limit: Union[str, NoneType] = None,
    key_func=<function get_remote_address at 0x7fd7ddad1310>
)

Set up rate limiting middleware.