""" Centralised rate-limiter instance. Lives in its own module to avoid circular imports between main.py and security.py. """ from slowapi import Limiter from slowapi.util import get_remote_address limiter = Limiter(key_func=get_remote_address)