tomasbasham / ratelimit

API Rate Limit Decorator
MIT License
768 stars 159 forks source link

Shimon/ratelimit/add condition to rate limiter #18

Closed shimon-lb closed 6 years ago

shimon-lb commented 6 years ago

This PR include additions below:

  1. Adding a condition to RateLimitDecorator that will allow 'bypassing' limit, in exceptional cases.
  2. Unit test for conditional ratelimiter.
  3. Add the ability to avoid rasing an exception in case limit was reached, but also, avoid calling the function.
tomasbasham commented 6 years ago

I'll merge this in this evening. Thanks a lot

shimon-lb commented 6 years ago

Thanks!