Metadata-Version: 2.4
Name: django-api-rate-limiter
Version: 0.0.2
Summary: Django Rate limiter for Admin panel, with synchronization towards Redis. Currently supports OpenResty as a rate limit server
Project-URL: Homepage, https://github.com/FallenAngel97/django-rate-limiter
Project-URL: Issues, https://github.com/FallenAngel97/django-rate-limiter/issues
Author: Oleksii Demennikov
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: django-redis>=6
Requires-Dist: django>=5
Description-Content-Type: text/markdown

# Django Rate Limiter 
- Tested on: Python 3.11.5
- Django 5.2.12

Start by installing the package:
```bash 
pip install django-api-rate-limiter
```

Navigate to your /admin page and visit section "Admin_Limiter"->"Api limiters".

There you can set up your own limits specified in "values per second". 
For example, you can fill up as:

Speed Value: 10
Method: Get 
Url: /api/limited 

This translates to:
*For every anonymous & logged in user apply the limit of 10 requests per second for 
GET requests going to /api/limited*

If your project is using django-oauth-toolkit, you can specify per-user limits, 
which are linked to the oauth tokens issued to users 

Please install OpenResty if you would like to use the Lua files from "nginx_lua" folder
