Skip to main content

Rate limiting for django applications

Project description

travis-ci coveralls pypi license

djlimiter provides rate limiting features to django via as 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.1.0 2015-01-09

  • first release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djlimiter-0.1.0.tar.gz (19.7 kB view hashes)

Uploaded Source

Built Distribution

djlimiter-0.1.0-py2.7.egg (17.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page