Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

1024inc/django-redis-ratelimit

 
 

Repository files navigation

DEPRECATED !!!!

Functionality of this repository was replaced by limits in this commit.

django-redis-ratelimit

Forked version of https://github.com/romantomjak/django-redis-ratelimit with resilience to Redis connection errors, so that Redis is not in the critical path of your endpoints.

Test

Run all tests:

docker-compose run test

Run an individual test:

docker-compose run test tests.tests.RateLimitTests

Usage

See instructions at https://github.com/romantomjak/django-redis-ratelimit

Django Settings

  • REDIS_RATELIMIT_DB_URL: Redis URL (defaults to redis://localhost:6379/0)
  • REDIS_RATELIMIT_DB_TIMEOUT: Timeout to connect and run commands in seconds (defaults to 0.1)

About

A fixed window rate limiting based on Redis

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 99.1%
  • Dockerfile 0.9%