ratelimit
ratelimit copied to clipboard
API Rate Limit Decorator
Hi Tom, This package has been pretty helpful. I am writing python code, where I call different end points in different methods. Is there a way that I could enforce...
Hello, your library replace the folder of [Django's Ratelimit](https://django-ratelimit.readthedocs.io/en/stable/) library, i want to use yours as well as Django Ratelimit.
I'm using the requests extension called requests-toolbelt which allows for mult-threaded requests. I believe the algorithm feeds multiple URLs to a requests.Session object and threads them up in a pool....
Sometimes you need to limit API calls from another package that you do not control. In this case, monkey patching the API may be the best option. But where? In...
timer now runs as blocking code, let's make it non-blocking with threads
Hi @tomasbasham, first of all thanks for this handy package. It solves a small but common enough problem such that this is currently the top Google result for "python rate...
From what I've gathered there exists a risk of violating the rate limit when using this module. As of now `RateLimitDecorator` does not calculate a sliding time frame to track...
Running 'pip install ratelimit', I get: ``` Defaulting to user installation because normal site-packages is not writeable Collecting ratelimit Downloading ratelimit-2.2.1.tar.gz (5.3 kB) ERROR: Command errored out with exit status...
Hi! This PR implements idea from #26 to make limits decorator compatible with async functions and asyncio coroutines. It uses simple check inspect.iscoroutinefunction to dispatch work to sync/async implementation. Credit...