limits is a python library to perform rate limiting with commonly used storage backends (Redis, Memcached & MongoDB).
To learn more about the different strategies refer to the Rate limiting strategies section.
For an overview of supported backends refer to Storage Backends.
The source is available on Github
To get started
$ git clone git://github.com/alisaifee/limits.git $ cd limits $ pip install -r requirements/dev.txt
Since limits integrates with various backend storages, local development and running tests requires a a working docker & docker-compose installation.
Running the tests will start the relevant containers automatically - but will leave them running so as to not incur the overhead of starting up on each test run. To run the tests:
Once you’re done - you will probably want to clean up the docker containers:
$ docker-compose down