freedoi/pyproject.toml
Kumi 4f62f6eff2
feat: rate limiting and Redis caching setup
Added rate limiting to the SendLoginEmailView to prevent abuse by applying the `ratelimit` decorator. Configured Redis as a cache backend based on settings from the configuration file. Updated dependencies to include `django-ratelimit`, `redis`, and `django-redis` packages to support these enhancements.

These changes improve the security and performance of the application by limiting login email attempts and using Redis for caching.
2024-06-23 16:47:07 +02:00

49 lines
1.1 KiB
TOML

[tool.poetry]
name = "freedoi"
version = "0.1.0"
description = ""
authors = ["Private.coffee Team <support@private.coffee>"]
license = "MIT"
readme = "README.md"
homepage = "https://freedoi.org"
repository = "https://git.private.coffee/PrivateCoffee/freedoi"
[tool.poetry.dependencies]
python = "^3.10"
django = "^5.0"
djangorestframework = "*"
setuptools = "*"
pillow = "*"
pygments = "*"
coreapi = "*"
pyyaml = "*"
django-autosecretkey = "*"
django-celery-results = "*"
django-celery-beat = "*"
drf-spectacular = {extras = ["sidecar"], version = "*"}
argon2-cffi = "*"
django-csp = "*"
django-rest-polymorphic = "*"
django-crispy-forms = "*"
crispy-bootstrap5 = "*"
django-two-factor-auth = "*"
phonenumbers = "*"
django-ratelimit = "*"
redis = "*"
django-redis = "*"
[tool.poetry.group.mysql.dependencies]
mysqlclient = "*"
[tool.poetry.group.postgres.dependencies]
psycopg2 = "*"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[tool.poetry.scripts]
freedoi-manage = "freedoi.manage:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"