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

后端 未结 6 1905
醉梦人生
醉梦人生 2020-12-30 06:13

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 l

6条回答
  •  爱一瞬间的悲伤
    2020-12-30 06:35

    Don't reinvent the wheel, unless it's called for. Check the awesome library ratelimit. Perfect if you just want to rate limit your calls to an rest api for whatever reason and get on with your life.

提交回复
热议问题