Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Provides a hook by which additional arguments may be added to
the route.  For most limits, this should not be needed; use
the filter() method instead.  Should return the URI to
connect.

:param uri: The configured URI.  May be returned unchanged.
:param route_args: A dictionary of keyword arguments that will
                   be passed to routes.Mapper.connect().  This
                   dictionary should be modified in place.

src/t/u/turnstile-HEAD/tests/unit/test_limits.py   turnstile(Download)
    def test_route_hook(self):
        limit = limits.Limit('db', uri='uri', value=10, unit=1)
        result = limit.route('uri', {})
 
        self.assertEqual(result, 'uri')