Skip to main content

djlimiter

travis-ci coveralls pypi license

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.

Metadata

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)

Source distribution for djlimiter 0.2
File Size Uploaded Provenance Actions
djlimiter-0.2.tar.gz 19.7 kB Without provenance Details for djlimiter-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djlimiter 0.2
File Interpreter ABI Platform Actions
djlimiter-0.2-py2.7.egg Legacy Egg format - - Details for djlimiter-0.2-py2.7.egg

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

Security for djlimiter 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page