5 lines
193 B
Python
5 lines
193 B
Python
from slowapi import Limiter
|
|
from slowapi.util import get_remote_address
|
|
|
|
# Create a limiter instance with rate limiting based on client IP address
|
|
limiter = Limiter(key_func=get_remote_address) |