From 4d4656356d0f768c66bb64cef8830ecc9eb6505e Mon Sep 17 00:00:00 2001 From: Bruno Martin Date: Mon, 11 May 2020 16:13:11 +0200 Subject: [PATCH] missing import in the readme ? Thanks for your work :) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d3f0ebe..34eb88c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ $ pip install slowapi ```python from starlette.applications import Starlette from slowapi import Limiter, _rate_limit_exceeded_handler + from slowapi.util import get_remote_address limiter = Limiter(key_func=get_remote_address) app = Starlette() @@ -39,6 +40,7 @@ The above app will have a route `t1` that will accept up to 5 requests per minut ```python from fastapi import FastAPI from slowapi import Limiter, _rate_limit_exceeded_handler + from slowapi.util import get_remote_address limiter = Limiter(key_func=get_remote_address) app = FastAPI()