Skip to content
Advertisement

Tag: rate-limiting

Python API Rate Limiting – How to Limit API Calls Globally

I’m trying to restrict the API calls in my code. I already found a nice python library ratelimiter==1.0.2.post0 https://pypi.python.org/pypi/ratelimiter However, this library can only limit the rate in local scope. i.e) in function and loops Because I have several functions, which make API calls, in different places, I want to limit the API calls in global scope. For example, suppose

How to limit rate of requests to web services in Python?

I’m working on a Python library that interfaces with a web service API. Like many web services I’ve encountered, this one requests limiting the rate of requests. I would like to provide an optional parameter, limit, to the class instantiation that, if provided, will hold outgoing requests until the number of seconds specified passes. I understand that the general scenario

Advertisement