/falcon-ratelimit

Rate limiter for Python Falcon framework

Primary LanguagePythonMIT LicenseMIT

falcon-ratelimit

Build Status Maintainability Test Coverage Issue Count PyPI PyPI version PyPI

Rate limiter for Falcon. Use like:

from falconratelimit import rate_limit
import falcon


class Resource(object):

    @falcon.before(rate_limit(per_second=5, resource='jwt token creation'))
    def on_post(self, req, resp):
        ...