Jordan Cook
Jordan Cook
I just came here to request the same thing! This would be great.
Looks like it's pinned to `0.4.13` in [requirements.txt](https://github.com/barnumbirr/coinmarketcap/blob/master/requirements.txt#L2). To use the latest version, I think this line here: https://github.com/barnumbirr/coinmarketcap/blob/2b951be7cedd7efc484f50f27600ee8a003f3c94/coinmarketcap/core.py#L27 Just needs to reference `requests_cache.CachedSession` instead of `requests_cache.core.CachedSession`.
That looks like a different error, probably just missing dependencies. Try: ``` pip install requests-cache==0.5.2 ```
After a bit more looking around, I discovered [**pyrate-limiter**](https://github.com/vutran1710/PyrateLimiter), which is actively maintained. It uses the [leaky bucket algorithm](https://www.wikiwand.com/en/Leaky_bucket), which accomplishes the same thing as the 'sliding window' feature described...
I'm curious, what issues did you run into with aiolimiter? I have use cases for both synchronous and asynchronous requests, and I haven't yet worked on the async ones. For...
Isn't that the expected behavior? After the first 5 requests, it reaches the rate limit and starts inserting a delay of 0.2s before each subsequent request, for an average of...
Ah! I see what you mean now. In that case I think it would be worth creating an issue for that on the aiolimiter repo.
That is the full module path, but changing it isn't necessary, since everything is imported into the top-level `requests_cache` package. `requests_cache.CachedSession` works in all versions >= 0.4.
This would be an extremely useful feature that I would love to see. My use case is nature photography, somewhat similar to @dinoschachten's workflow. As far as I know, there...
Note that one of the other solutions posted in #201 still works in python 3.10.2: https://github.com/python-attrs/cattrs/issues/201#issuecomment-1002124718 So the above example would become: ```python from attr import define, field from cattr...