Skip to content

adityav-verma/ratelimiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rate-Limiter

A python package to have rate limiting for almost anything.

from ratelimiter import RateLimiter

rate_limiter = RateLimiter.redis('host', 'port')

api_request_limit = rate_limiter.limiter(number_of_requests=10, mins=30)

# While performing an action
api_request_limit.is_allowed()  # True/False
api_request_limit.remaining_requests    # Number of requests allowed

About

Sliding window rate limiter for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages