djlimiter 0.2
pip install djlimiter
Released:
Rate limiting for django applications
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Ali-Akber Saifee
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Ali-Akber Saifee
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file djlimiter-0.2.tar.gz
.
File metadata
- Download URL: djlimiter-0.2.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fdc5759c94d5def466932e67650e66cd6985eea95dd7f3cd77e84e19b49163f |
|
MD5 | 919ed26e4ac3ed3742be6e8d587cc971 |
|
BLAKE2b-256 | e5497b521fb3d8b7dc240f71080da874e62f9afb97216a19fc6dea02e692e6f7 |
File details
Details for the file djlimiter-0.2-py2.7.egg
.
File metadata
- Download URL: djlimiter-0.2-py2.7.egg
- Upload date:
- Size: 17.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89a5cdab1ba9046c5ffd983a5ec949acaf0d428a96b7525b0ce1fe596728a724 |
|
MD5 | d1f362aeb72929d85fbe971d96ec0f67 |
|
BLAKE2b-256 | 331beb12d0bc8c44c92c58351b46fbc156722d67fe5dfa0ce0eb749cdbfad94e |