ratelimiter icon indicating copy to clipboard operation
ratelimiter copied to clipboard

Simple Python module providing rate limiting

Results 13 ratelimiter issues
Sort by recently updated
recently updated
newest added

Hi, as [reported in the Debian bug tracking system](https://bugs.debian.org/1025119) ratelimiter does not work with python3.11: Python 3.11.1 (main, Dec 7 2022, 08:49:13) [GCC 12.2.0] on linux Type "help", "copyright", "credits"...

The algorithm will always wait too much. ```py import time from ratelimiter import RateLimiter rate_limiter = RateLimiter(max_calls=1, period=1) start = time.time() for i in range(3): with rate_limiter: print("%.02f" % (time.time()...

If `len(self.calls) >= max_calls` and the last call is long time ago, the algorithm is awaiting unnecessarily. Based on the comments in this thread [https://github.com/RazerM/ratelimiter/issues/15](https://github.com/RazerM/ratelimiter/issues/15)

backward behavior for python 3.5 - 3.10; no need for decorator if deprecated in python >= 3.11

Our project currently uses `ratelimiter-1.2.0.post0`, the [latest version](https://pypi.org/project/ratelimiter/#history) on PyPI. Python 3.8 has been released and we're [adding](https://github.com/manubot/manubot/pull/162) a py28 CI test for our project, which resulted in the [following...

this closes #10 by using async syntax that doesn't trigger warnings. this pr also removes from travis the versions of python3 that are end of life'd (3.3, 3.4) adds the...

I think those lines are not useful ```py self._alock = None # Lock to protect creation of self._alock self._init_lock = threading.Lock() ```

`pytest.collect.File` was moved to `pytest.File` in pytest 7 It turns out that `pytest.File` was already available in all versions of pytest this project claims to support, so the change is...

Use async with self._alock: instead of await self_alock: ![error_log](https://user-images.githubusercontent.com/74831720/102697361-8ced6480-4235-11eb-96cb-66002b195055.JPG)