u/Remarkable-Bag4365

django-captcha-kit — A simple CAPTCHA library for Django
▲ 3 r/django

django-captcha-kit — A simple CAPTCHA library for Django

Hi everyone,

I’ve developed django-captcha-kit, a small Django library for adding CAPTCHA protection to forms, with the ability to switch between providers through configuration.

Supported providers:

  • Cloudflare Turnstile
  • Google reCAPTCHA v2 (checkbox)
  • hCaptcha
  • Image CAPTCHA — locally generated distorted characters, with no third-party service
  • Math CAPTCHA — fully local, using a signed token and no server-side state
  • none — disables CAPTCHA, useful for testing and development

The goal is to keep the API simple while supporting both external CAPTCHA providers and fully local CAPTCHA implementations.

There are no dependencies other than Django. Verification relies only on the Python standard library. The Image CAPTCHA provider is the only one that requires Pillow, and only if you install it explicitly:

pip install django-captcha-kit[image]

GitHub: https://github.com/Macktireh/django-captcha-kit

PyPI: https://pypi.org/project/django-captcha-kit/

I’d be interested in your feedback!

Best regards, and have a great weekend.

u/Remarkable-Bag4365 — 6 days ago