tomasbasham / ratelimit

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

Support for requests-toolbelt #49

Open leeprevost opened 4 years ago

leeprevost commented 4 years ago

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.

Can this be adapted to do rate limit/throttling for APIs that limit requests to something like 20 requests per second?

https://toolbelt.readthedocs.io/en/latest/

samwyse commented 3 years ago

Look at my "Usage note" issue for one way around this.