Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/f/l/Flask-Limiter-0.3.1/flask_limiter/extension.py   Flask-Limiter(Download)
from .errors import RateLimitExceeded, ConfigurationError
from .strategies import STRATEGIES
from .util import storage_from_string, parse_many, get_ipaddr
 
class Limiter(object):
            self.global_limits.extend(
                [
                    (key_func, limit) for limit in parse_many(limit)
                ]
            )
        if not self.global_limits and conf_limits:
            self.global_limits = [
                (self.key_func, limit) for limit in parse_many(conf_limits)
            ]
        app.before_request(self.__check_request_limit)
                try:
                    dynamic_limits.extend(
                        [key_func, limit] for limit in parse_many(limit_func())
                    )
                except ValueError as e:
                try:
                    self.route_limits.setdefault(name, []).extend(
                        [(func, limit) for limit in parse_many(limit_value)]
                    )
                except ValueError as e: