django-recaptcha


Namedjango-recaptcha JSON
Version 4.0.0 PyPI version JSON
download
home_pagehttps://github.com/torchbox/django-recaptcha
SummaryDjango recaptcha form field/widget app.
upload_time2023-11-16 15:29:08
maintainer
docs_urlNone
authorTorchbox and individual contributors
requires_python
licenseBSD
keywords django recaptcha recaptcha v2 recaptcha v3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Django reCAPTCHA <!-- omit from toc -->

**Django reCAPTCHA form field/widget integration app.**

[![PyPI latest version](https://img.shields.io/pypi/v/django-recaptcha.svg)](https://pypi.org/project/django-recaptcha/)
[![PyPI monthly downloads](https://img.shields.io/pypi/dm/django-recaptcha.svg)](https://pypi.org/project/django-recaptcha/)
[![CI status](https://github.com/torchbox/django-recaptcha/workflows/CI/badge.svg)](https://github.com/torchbox/django-recaptcha/actions)
[![Coverage](https://coveralls.io/repos/github/torchbox/django-recaptcha/badge.svg?branch=main)](https://coveralls.io/github/torchbox/django-recaptcha?branch=main)

> [!NOTE]
> django-recaptcha supports Google reCAPTCHA V2 - Checkbox (Default), Google reCAPTCHA V2 - Invisible and Google reCAPTCHA V3. Please look at the widgets section for more information.
>
> Django reCAPTCHA uses a modified version of the [Python reCAPTCHA client](http://pypi.python.org/pypi/recaptcha-client) which is included in the package as `client.py`.

- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
  - [Fields](#fields)
  - [Widgets](#widgets)
  - [reCAPTCHA V3 Score](#recaptcha-v3-score)
  - [reCAPTCHA V3 Action](#recaptcha-v3-action)
  - [Local Development and Functional Testing](#local-development-and-functional-testing)
- [Credits](#credits)

## Requirements

Tested with:

- Python: 3.8, 3.9, 3.10, 3.11
- Django: 3.2, 4.1, 4.2
- You can view the [Python-Django support matrix
  here](https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django)

This package only supports modern, “evergreen” desktop and mobile
browsers. For IE11 support, make sure to add a [polyfill for
Element.closest](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill).

## Installation

1.  [Sign up for reCAPTCHA](https://www.google.com/recaptcha/intro/index.html).

2.  Install with `pip install django-recaptcha`.

3.  Add `'django_recaptcha'` to your `INSTALLED_APPS` setting.

```python
INSTALLED_APPS = [
    ...,
    'django_recaptcha',
    ...
]
```

4.  Add the Google reCAPTCHA keys generated in step 1 to your Django
    production settings with `RECAPTCHA_PUBLIC_KEY` and
    `RECAPTCHA_PRIVATE_KEY`. Note that omitting these settings will
    default to a set of test keys refer to [Local Development and
    Functional Testing](#local-development-and-functional-testing) for
    more information.

For example:

```python
RECAPTCHA_PUBLIC_KEY = 'MyRecaptchaKey123'
RECAPTCHA_PRIVATE_KEY = 'MyRecaptchaPrivateKey456'
```

These can also be specified per field by passing the `public_key`
or `private_key` parameters to `ReCaptchaField` - see field usage
below.

5.  (OPTIONAL) If you require a proxy, add a `RECAPTCHA_PROXY` setting
    (dictionary of proxies), for example:

```python
RECAPTCHA_PROXY = {'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'}
```

6.  (OPTIONAL) In the event `www.google.com` is not accessible the
    `RECAPTCHA_DOMAIN` setting can be changed to `www.recaptcha.net` as
    per the [reCAPTCHA
    FAQ](https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally):

```python
RECAPTCHA_DOMAIN = 'www.recaptcha.net'
```

This will change the Google JavaScript api domain as well as the client
side field verification domain.

## Usage

### Fields

The quickest way to add reCAPTCHA to a form is to use the included
`ReCaptchaField` field class. A `ReCaptchaV2Checkbox` will be rendered
by default. For example:

```python
from django import forms
from django_recaptcha.fields import ReCaptchaField

class FormWithCaptcha(forms.Form):
    captcha = ReCaptchaField()
```

Be sure to include the captcha field in your forms. There are many ways
to add fields to forms in Django. We recommend you refer to the [form
rendering
options](https://docs.djangoproject.com/en/dev/topics/forms/#form-rendering-options)
and [rendering fields
manually](https://docs.djangoproject.com/en/dev/topics/forms/#rendering-fields-manually)
sections of the [official Django documentation for
forms](https://docs.djangoproject.com/en/dev/topics/forms).

To allow for runtime specification of keys you can optionally pass the
`private_key` or `public_key` parameters to the constructor. For
example:

```python
captcha = ReCaptchaField(
    public_key='76wtgdfsjhsydt7r5FFGFhgsdfytd656sad75fgh',
    private_key='98dfg6df7g56df6gdfgdfg65JHJH656565GFGFGs',
)
```

If specified, these parameters will be used instead of your reCAPTCHA
project settings.

### Widgets

There are three widgets that can be used with the `ReCaptchaField`
class:

- `ReCaptchaV2Checkbox` for [Google reCAPTCHA V2 - Checkbox](https://developers.google.com/recaptcha/docs/display)
- `ReCaptchaV2Invisible` for [Google reCAPTCHA V2 - Invisible](https://developers.google.com/recaptcha/docs/invisible)
- `ReCaptchaV3` for [Google reCAPTCHA V3](https://developers.google.com/recaptcha/docs/v3)

To make use of widgets other than the default Google reCAPTCHA V2 -
Checkbox widget, simply replace the `ReCaptchaField` widget. For
example:

```python
from django import forms
from django_recaptcha.fields import ReCaptchaField
from django_recaptcha.widgets import ReCaptchaV2Invisible

class FormWithCaptcha(forms.Form):
    captcha = ReCaptchaField(widget=ReCaptchaV2Invisible)
```

The reCAPTCHA widget supports several [data
attributes](https://developers.google.com/recaptcha/docs/display#render_param)
that customize the behaviour of the widget, such as `data-theme`,
`data-size`, etc. You can forward these options to the widget by passing
an `attrs` parameter to the widget, containing a dictionary of options.
For example:

```python
captcha = fields.ReCaptchaField(
    widget=widgets.ReCaptchaV2Checkbox(
        attrs={
            'data-theme': 'dark',
            'data-size': 'compact',
        }
    )
)
# The ReCaptchaV2Invisible widget
# ignores the "data-size" attribute in favor of 'data-size="invisible"'
```

The reCAPTCHA api supports several
[parameters](https://developers.google.com/recaptcha/docs/display#js_param).
To customise the parameters that get sent along pass an `api_params`
parameter to the widget, containing a dictionary of options. For
example:

```python
captcha = fields.ReCaptchaField(
    widget=widgets.ReCaptchaV2Checkbox(
        api_params={'hl': 'cl', 'onload': 'onLoadFunc'}
    )
)
# The dictionary is urlencoded and appended to the reCAPTCHA api url.
```

By default, the widgets provided only supports a single form with a
single widget on each page.

The language can be set with the 'h1' parameter, look at [language
codes](https://developers.google.com/recaptcha/docs/language) for the
language code options. Note that translations need to be added to this
package for the errors to be shown correctly. Currently the package has
error translations for the following language codes: es, fr, nl, pl,
pt_BR, ru, zh_CN, zh_TW

However, the JavaScript used by the widgets can easily be overridden in
the templates.

The templates are located in:

- `django_recaptcha/includes/js_v2_checkbox.html` for overriding the reCAPTCHA V2 - Checkbox template
- `django_recaptcha/includes/js_v2_invisible.html` for overriding the reCAPTCHA V2 - Invisible template
- `django_recaptcha/includes/js_v3.html` for overriding the reCAPTCHA V3 template

For more information about overriding templates look at [Django's template override](https://docs.djangoproject.com/en/4.2/howto/overriding-templates/)

### reCAPTCHA V3 Score

As of version 3, reCAPTCHA also returns a score value. This can be used
to determine the likelihood of the page interaction being a bot. See the Google [documentation](https://developers.google.com/recaptcha/docs/v3#score)
for more details.

To set a project wide score limit use the `RECAPTCHA_REQUIRED_SCORE` setting.

For example:

```python
RECAPTCHA_REQUIRED_SCORE = 0.85
```

For per field, runtime, specification the attribute can also be passed to the widget:

```python
captcha = fields.ReCaptchaField(
    widget=ReCaptchaV3(
        attrs={
            'required_score':0.85,
            ...
        }
    )
)
```

In the event the score does not meet the requirements, the field
validation will fail as expected and an error message will be logged.

### reCAPTCHA V3 Action

[Google's reCAPTCHA V3 API supports passing an action value](https://developers.google.com/recaptcha/docs/v3#actions).
Actions allow you to tie reCAPTCHA validations to a specific form on your site for analytical purposes, enabling you to perform risk analysis per form. This will allow you to make informed decisions about adjusting the score threshold for certain forms because abusive behavior can vary depending on the nature of the form.

To set the action value, pass an `action` argument when instantiating the ReCaptcha
widget. Be careful to only use alphanumeric characters, slashes and underscores as stated in the reCAPTCHA documentation.

```python
captcha = fields.ReCaptchaField(
    widget=widgets.ReCaptchaV3(
        action='signup'
    )
)
```

Setting an action is entirely optional. If you don't specify an action, no action will be passed to the reCAPTCHA V3 API.

### Local Development and Functional Testing

If `RECAPTCHA_PUBLIC_KEY` and `RECAPTCHA_PRIVATE_KEY` are not set,
django-recaptcha will use [Google's test
keys](https://developers.google.com/recaptcha/docs/faq) instead. These
cannot be used in production since they always validate to true and a
warning will be shown on the reCAPTCHA. Google's test keys only work for
reCAPTCHA version 2.

To bypass the security check that prevents the test keys from being used
unknowingly add
`SILENCED_SYSTEM_CHECKS = [..., 'django_recaptcha.recaptcha_test_key_error', ...]`
to your settings, here is an example:

```python
SILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error']
```

If you want to mock the call to Google's servers altogether, have a look
at
[test_fields.py](https://github.com/torchbox/django-recaptcha/blob/main/captcha/tests/test_fields.py):

```python
from unittest.mock import patch
from django.test import TestCase
from django_recaptcha.client import RecaptchaResponse

class TestFields(TestCase):
    @patch("django_recaptcha.fields.client.submit")
    def test_client_success_response(self, mocked_submit):
        mocked_submit.return_value = RecaptchaResponse(is_valid=True)
        ...
```

## Credits

Originally developed by [Praekelt Consulting](https://github.com/praekelt/django-recaptcha)

Inspired Marco Fucci's blogpost titled [Integrating reCAPTCHA with Django](http://www.marcofucci.com/tumblelog/26/jul/2009/integrating-recaptcha-with-django)

`client.py` taken from [recaptcha-client](http://pypi.python.org/pypi/recaptcha-client) licensed MIT/X11 by Mike Crawford.

reCAPTCHA copyright 2012 Google.


# Authors

## Current Maintainers

- [Andrew Chen Wang](https://github.com/Andrew-Chen-Wang)
- [Storm Heg](https://github.com/Stormheg)

## Praekelt Consulting

- Shaun Sephton
- Peter Pistorius
- Hedley Roos
- Altus Barry
- Cilliers Blignaut

## bTaylor Design

- [Brandon Taylor](http://btaylordesign.com/)

## Other

- Brooks Travis
- [Denis Mishchishin](https://github.com/denz)
- [Joshua Peper](https://github.com/zout)
- [Rodrigo Primo](https://github.com/rodrigoprimo)
- [snnwolf](https://github.com/snnwolf)
- [Adriano Orioli](https://github.com/Aorioli)
- [cdvv7788](https://github.com/cdvv7788)
- [Daniel Gatis Carrazzoni](https://github.com/danielgatis)
- [pbf](https://github.com/pbf)
- [Alexey Subbotin](https://github.com/dotsbb)
- [Sean Stewart](https://github.com/mindcruzer)
- [Rob Charlwood](https://github.com/robcharlwood)
- [Ruslan Kovtun](https://github.com/koutoftimer)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/torchbox/django-recaptcha",
    "name": "django-recaptcha",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django,reCAPTCHA,reCAPTCHA v2,reCAPTCHA v3",
    "author": "Torchbox and individual contributors",
    "author_email": "hello@torchbox.com",
    "download_url": "https://files.pythonhosted.org/packages/d4/6b/6edf89da076b2d1ea042e14f116de80be18d25b17af158038d5fc14c00bb/django-recaptcha-4.0.0.tar.gz",
    "platform": null,
    "description": "# Django reCAPTCHA <!-- omit from toc -->\n\n**Django reCAPTCHA form field/widget integration app.**\n\n[![PyPI latest version](https://img.shields.io/pypi/v/django-recaptcha.svg)](https://pypi.org/project/django-recaptcha/)\n[![PyPI monthly downloads](https://img.shields.io/pypi/dm/django-recaptcha.svg)](https://pypi.org/project/django-recaptcha/)\n[![CI status](https://github.com/torchbox/django-recaptcha/workflows/CI/badge.svg)](https://github.com/torchbox/django-recaptcha/actions)\n[![Coverage](https://coveralls.io/repos/github/torchbox/django-recaptcha/badge.svg?branch=main)](https://coveralls.io/github/torchbox/django-recaptcha?branch=main)\n\n> [!NOTE]\n> django-recaptcha supports Google reCAPTCHA V2 - Checkbox (Default), Google reCAPTCHA V2 - Invisible and Google reCAPTCHA V3. Please look at the widgets section for more information.\n>\n> Django reCAPTCHA uses a modified version of the [Python reCAPTCHA client](http://pypi.python.org/pypi/recaptcha-client) which is included in the package as `client.py`.\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Fields](#fields)\n  - [Widgets](#widgets)\n  - [reCAPTCHA V3 Score](#recaptcha-v3-score)\n  - [reCAPTCHA V3 Action](#recaptcha-v3-action)\n  - [Local Development and Functional Testing](#local-development-and-functional-testing)\n- [Credits](#credits)\n\n## Requirements\n\nTested with:\n\n- Python: 3.8, 3.9, 3.10, 3.11\n- Django: 3.2, 4.1, 4.2\n- You can view the [Python-Django support matrix\n  here](https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django)\n\nThis package only supports modern, \u201cevergreen\u201d desktop and mobile\nbrowsers. For IE11 support, make sure to add a [polyfill for\nElement.closest](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill).\n\n## Installation\n\n1.  [Sign up for reCAPTCHA](https://www.google.com/recaptcha/intro/index.html).\n\n2.  Install with `pip install django-recaptcha`.\n\n3.  Add `'django_recaptcha'` to your `INSTALLED_APPS` setting.\n\n```python\nINSTALLED_APPS = [\n    ...,\n    'django_recaptcha',\n    ...\n]\n```\n\n4.  Add the Google reCAPTCHA keys generated in step 1 to your Django\n    production settings with `RECAPTCHA_PUBLIC_KEY` and\n    `RECAPTCHA_PRIVATE_KEY`. Note that omitting these settings will\n    default to a set of test keys refer to [Local Development and\n    Functional Testing](#local-development-and-functional-testing) for\n    more information.\n\nFor example:\n\n```python\nRECAPTCHA_PUBLIC_KEY = 'MyRecaptchaKey123'\nRECAPTCHA_PRIVATE_KEY = 'MyRecaptchaPrivateKey456'\n```\n\nThese can also be specified per field by passing the `public_key`\nor `private_key` parameters to `ReCaptchaField` - see field usage\nbelow.\n\n5.  (OPTIONAL) If you require a proxy, add a `RECAPTCHA_PROXY` setting\n    (dictionary of proxies), for example:\n\n```python\nRECAPTCHA_PROXY = {'http': 'http://127.0.0.1:8000', 'https': 'https://127.0.0.1:8000'}\n```\n\n6.  (OPTIONAL) In the event `www.google.com` is not accessible the\n    `RECAPTCHA_DOMAIN` setting can be changed to `www.recaptcha.net` as\n    per the [reCAPTCHA\n    FAQ](https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally):\n\n```python\nRECAPTCHA_DOMAIN = 'www.recaptcha.net'\n```\n\nThis will change the Google JavaScript api domain as well as the client\nside field verification domain.\n\n## Usage\n\n### Fields\n\nThe quickest way to add reCAPTCHA to a form is to use the included\n`ReCaptchaField` field class. A `ReCaptchaV2Checkbox` will be rendered\nby default. For example:\n\n```python\nfrom django import forms\nfrom django_recaptcha.fields import ReCaptchaField\n\nclass FormWithCaptcha(forms.Form):\n    captcha = ReCaptchaField()\n```\n\nBe sure to include the captcha field in your forms. There are many ways\nto add fields to forms in Django. We recommend you refer to the [form\nrendering\noptions](https://docs.djangoproject.com/en/dev/topics/forms/#form-rendering-options)\nand [rendering fields\nmanually](https://docs.djangoproject.com/en/dev/topics/forms/#rendering-fields-manually)\nsections of the [official Django documentation for\nforms](https://docs.djangoproject.com/en/dev/topics/forms).\n\nTo allow for runtime specification of keys you can optionally pass the\n`private_key` or `public_key` parameters to the constructor. For\nexample:\n\n```python\ncaptcha = ReCaptchaField(\n    public_key='76wtgdfsjhsydt7r5FFGFhgsdfytd656sad75fgh',\n    private_key='98dfg6df7g56df6gdfgdfg65JHJH656565GFGFGs',\n)\n```\n\nIf specified, these parameters will be used instead of your reCAPTCHA\nproject settings.\n\n### Widgets\n\nThere are three widgets that can be used with the `ReCaptchaField`\nclass:\n\n- `ReCaptchaV2Checkbox` for [Google reCAPTCHA V2 - Checkbox](https://developers.google.com/recaptcha/docs/display)\n- `ReCaptchaV2Invisible` for [Google reCAPTCHA V2 - Invisible](https://developers.google.com/recaptcha/docs/invisible)\n- `ReCaptchaV3` for [Google reCAPTCHA V3](https://developers.google.com/recaptcha/docs/v3)\n\nTo make use of widgets other than the default Google reCAPTCHA V2 -\nCheckbox widget, simply replace the `ReCaptchaField` widget. For\nexample:\n\n```python\nfrom django import forms\nfrom django_recaptcha.fields import ReCaptchaField\nfrom django_recaptcha.widgets import ReCaptchaV2Invisible\n\nclass FormWithCaptcha(forms.Form):\n    captcha = ReCaptchaField(widget=ReCaptchaV2Invisible)\n```\n\nThe reCAPTCHA widget supports several [data\nattributes](https://developers.google.com/recaptcha/docs/display#render_param)\nthat customize the behaviour of the widget, such as `data-theme`,\n`data-size`, etc. You can forward these options to the widget by passing\nan `attrs` parameter to the widget, containing a dictionary of options.\nFor example:\n\n```python\ncaptcha = fields.ReCaptchaField(\n    widget=widgets.ReCaptchaV2Checkbox(\n        attrs={\n            'data-theme': 'dark',\n            'data-size': 'compact',\n        }\n    )\n)\n# The ReCaptchaV2Invisible widget\n# ignores the \"data-size\" attribute in favor of 'data-size=\"invisible\"'\n```\n\nThe reCAPTCHA api supports several\n[parameters](https://developers.google.com/recaptcha/docs/display#js_param).\nTo customise the parameters that get sent along pass an `api_params`\nparameter to the widget, containing a dictionary of options. For\nexample:\n\n```python\ncaptcha = fields.ReCaptchaField(\n    widget=widgets.ReCaptchaV2Checkbox(\n        api_params={'hl': 'cl', 'onload': 'onLoadFunc'}\n    )\n)\n# The dictionary is urlencoded and appended to the reCAPTCHA api url.\n```\n\nBy default, the widgets provided only supports a single form with a\nsingle widget on each page.\n\nThe language can be set with the 'h1' parameter, look at [language\ncodes](https://developers.google.com/recaptcha/docs/language) for the\nlanguage code options. Note that translations need to be added to this\npackage for the errors to be shown correctly. Currently the package has\nerror translations for the following language codes: es, fr, nl, pl,\npt_BR, ru, zh_CN, zh_TW\n\nHowever, the JavaScript used by the widgets can easily be overridden in\nthe templates.\n\nThe templates are located in:\n\n- `django_recaptcha/includes/js_v2_checkbox.html` for overriding the reCAPTCHA V2 - Checkbox template\n- `django_recaptcha/includes/js_v2_invisible.html` for overriding the reCAPTCHA V2 - Invisible template\n- `django_recaptcha/includes/js_v3.html` for overriding the reCAPTCHA V3 template\n\nFor more information about overriding templates look at [Django's template override](https://docs.djangoproject.com/en/4.2/howto/overriding-templates/)\n\n### reCAPTCHA V3 Score\n\nAs of version 3, reCAPTCHA also returns a score value. This can be used\nto determine the likelihood of the page interaction being a bot. See the Google [documentation](https://developers.google.com/recaptcha/docs/v3#score)\nfor more details.\n\nTo set a project wide score limit use the `RECAPTCHA_REQUIRED_SCORE` setting.\n\nFor example:\n\n```python\nRECAPTCHA_REQUIRED_SCORE = 0.85\n```\n\nFor per field, runtime, specification the attribute can also be passed to the widget:\n\n```python\ncaptcha = fields.ReCaptchaField(\n    widget=ReCaptchaV3(\n        attrs={\n            'required_score':0.85,\n            ...\n        }\n    )\n)\n```\n\nIn the event the score does not meet the requirements, the field\nvalidation will fail as expected and an error message will be logged.\n\n### reCAPTCHA V3 Action\n\n[Google's reCAPTCHA V3 API supports passing an action value](https://developers.google.com/recaptcha/docs/v3#actions).\nActions allow you to tie reCAPTCHA validations to a specific form on your site for analytical purposes, enabling you to perform risk analysis per form. This will allow you to make informed decisions about adjusting the score threshold for certain forms because abusive behavior can vary depending on the nature of the form.\n\nTo set the action value, pass an `action` argument when instantiating the ReCaptcha\nwidget. Be careful to only use alphanumeric characters, slashes and underscores as stated in the reCAPTCHA documentation.\n\n```python\ncaptcha = fields.ReCaptchaField(\n    widget=widgets.ReCaptchaV3(\n        action='signup'\n    )\n)\n```\n\nSetting an action is entirely optional. If you don't specify an action, no action will be passed to the reCAPTCHA V3 API.\n\n### Local Development and Functional Testing\n\nIf `RECAPTCHA_PUBLIC_KEY` and `RECAPTCHA_PRIVATE_KEY` are not set,\ndjango-recaptcha will use [Google's test\nkeys](https://developers.google.com/recaptcha/docs/faq) instead. These\ncannot be used in production since they always validate to true and a\nwarning will be shown on the reCAPTCHA. Google's test keys only work for\nreCAPTCHA version 2.\n\nTo bypass the security check that prevents the test keys from being used\nunknowingly add\n`SILENCED_SYSTEM_CHECKS = [..., 'django_recaptcha.recaptcha_test_key_error', ...]`\nto your settings, here is an example:\n\n```python\nSILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error']\n```\n\nIf you want to mock the call to Google's servers altogether, have a look\nat\n[test_fields.py](https://github.com/torchbox/django-recaptcha/blob/main/captcha/tests/test_fields.py):\n\n```python\nfrom unittest.mock import patch\nfrom django.test import TestCase\nfrom django_recaptcha.client import RecaptchaResponse\n\nclass TestFields(TestCase):\n    @patch(\"django_recaptcha.fields.client.submit\")\n    def test_client_success_response(self, mocked_submit):\n        mocked_submit.return_value = RecaptchaResponse(is_valid=True)\n        ...\n```\n\n## Credits\n\nOriginally developed by [Praekelt Consulting](https://github.com/praekelt/django-recaptcha)\n\nInspired Marco Fucci's blogpost titled [Integrating reCAPTCHA with Django](http://www.marcofucci.com/tumblelog/26/jul/2009/integrating-recaptcha-with-django)\n\n`client.py` taken from [recaptcha-client](http://pypi.python.org/pypi/recaptcha-client) licensed MIT/X11 by Mike Crawford.\n\nreCAPTCHA copyright 2012 Google.\n\n\n# Authors\n\n## Current Maintainers\n\n- [Andrew Chen Wang](https://github.com/Andrew-Chen-Wang)\n- [Storm Heg](https://github.com/Stormheg)\n\n## Praekelt Consulting\n\n- Shaun Sephton\n- Peter Pistorius\n- Hedley Roos\n- Altus Barry\n- Cilliers Blignaut\n\n## bTaylor Design\n\n- [Brandon Taylor](http://btaylordesign.com/)\n\n## Other\n\n- Brooks Travis\n- [Denis Mishchishin](https://github.com/denz)\n- [Joshua Peper](https://github.com/zout)\n- [Rodrigo Primo](https://github.com/rodrigoprimo)\n- [snnwolf](https://github.com/snnwolf)\n- [Adriano Orioli](https://github.com/Aorioli)\n- [cdvv7788](https://github.com/cdvv7788)\n- [Daniel Gatis Carrazzoni](https://github.com/danielgatis)\n- [pbf](https://github.com/pbf)\n- [Alexey Subbotin](https://github.com/dotsbb)\n- [Sean Stewart](https://github.com/mindcruzer)\n- [Rob Charlwood](https://github.com/robcharlwood)\n- [Ruslan Kovtun](https://github.com/koutoftimer)\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Django recaptcha form field/widget app.",
    "version": "4.0.0",
    "project_urls": {
        "Changelog": "https://github.com/torchbox/django-recaptcha/blob/main/CHANGELOG.md",
        "Discussions": "https://github.com/torchbox/django-recaptcha/discussions",
        "Homepage": "https://github.com/torchbox/django-recaptcha",
        "Issue Tracker": "https://github.com/torchbox/django-recaptcha/issues"
    },
    "split_keywords": [
        "django",
        "recaptcha",
        "recaptcha v2",
        "recaptcha v3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28d709cefb2b4a7dc9ed8a6aabb176ea86eb904a8f73671358436e4b0aa81b93",
                "md5": "cf41f7c4ca9282f7e1448bf479718ea4",
                "sha256": "0d912d5c7c009df4e47accd25029133d47a74342dbd2a8edc2877b6bffa971a3"
            },
            "downloads": -1,
            "filename": "django_recaptcha-4.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cf41f7c4ca9282f7e1448bf479718ea4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 21915,
            "upload_time": "2023-11-16T15:29:06",
            "upload_time_iso_8601": "2023-11-16T15:29:06.790623Z",
            "url": "https://files.pythonhosted.org/packages/28/d7/09cefb2b4a7dc9ed8a6aabb176ea86eb904a8f73671358436e4b0aa81b93/django_recaptcha-4.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d46b6edf89da076b2d1ea042e14f116de80be18d25b17af158038d5fc14c00bb",
                "md5": "85a9f3e8abe01d043411a0b6b6a40388",
                "sha256": "5316438f97700c431d65351470d1255047e3f2cd9af0f2f13592b637dad9213e"
            },
            "downloads": -1,
            "filename": "django-recaptcha-4.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "85a9f3e8abe01d043411a0b6b6a40388",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22907,
            "upload_time": "2023-11-16T15:29:08",
            "upload_time_iso_8601": "2023-11-16T15:29:08.601994Z",
            "url": "https://files.pythonhosted.org/packages/d4/6b/6edf89da076b2d1ea042e14f116de80be18d25b17af158038d5fc14c00bb/django-recaptcha-4.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-16 15:29:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "torchbox",
    "github_project": "django-recaptcha",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "django-recaptcha"
}
        
Elapsed time: 0.14671s