token-bucket
token-bucket copied to clipboard
Token bucket algorithm implementation for Python web apps.
- use modern PEP621 for packaging: https://peps.python.org/pep-0621/ - ~drop python3.6 support, eol was end of 2021~
I added the arg `ignore_subclass` to `Limiter` to enable the user to skip the `storage must be a subclass of StorageBase` check. Here is my use-case: ```python from multiprocessing.managers import...
Hello everyone, If you want to increase the next release version, this is very easy with `hatch`, e.g. `hatch version minor,rc`. This are the main features in this PR: -...
Add usage example for Token Bucket Rate Limiter.
We wanted to make a `Storage` sub-class that uses Django cache backend rather than in-memory dict. So we wanted `StorageBase` to actually implement the token bucket algorithm so as not...
Cross-linked from https://github.com/falconry/falcon/issues/1030