djlimiter provides rate limiting features to django via a middleware.
Quickstart
Add the rate limiter to your django projects’ settings.py and enable a global rate limit for all views in your project:
MIDDLEWARE_CLASSES += ("djlimiter.Limiter",)
RATELIMIT_GLOBAL = "10/second"
If you only want to enable rate limits to certain endpoints, leave out the RATELIMIT_GLOBAL setting and use the decorator approach instead in the respective view function:
@limit("10/second")
def index(request):
...
For detailed documentation visit Read the docs
Changelog
0.2 2015-12-20
Django 1.8/1.9 compatibility
0.1.1 2015-01-09
Bug Fix: remove duplicate hits when rate limits are stacked.
Bug Fix: multiple rate limits returned by dynamic limits weren’t respected.
Documentation tweaks.
0.1.0 2015-01-09
first release.
Release files for djlimiter 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djlimiter-0.2.tar.gz | 19.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djlimiter-0.2-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 37.2 kB
Release files / djlimiter-0.2.tar.gz
| Download URL | djlimiter-0.2.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fdc5759c94d5def466932e67650e66cd6985eea95dd7f3cd77e84e19b49163f
|
|
BLAKE2b-256 checksum How to use checksums |
e5497b521fb3d8b7dc240f71080da874e62f9afb97216a19fc6dea02e692e6f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / djlimiter-0.2-py2.7.egg
| Download URL | djlimiter-0.2-py2.7.egg |
|---|---|
| Size | 17.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
89a5cdab1ba9046c5ffd983a5ec949acaf0d428a96b7525b0ce1fe596728a724
|
|
BLAKE2b-256 checksum How to use checksums |
331beb12d0bc8c44c92c58351b46fbc156722d67fe5dfa0ce0eb749cdbfad94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |