Metadata-Version: 2.3
Name: wagtail-mosparo
Version: 0.1.0
Summary: mosparo spam protection for wagtail cms
License: MIT
Keywords: wagtail,mosparo,spam,spam-protection,spam protection
Author: Veronika Plass
Author-email: veronika.plass@unicode-it.de
Requires-Python: >=3.11
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Wagtail
Classifier: Framework :: Wagtail :: 7
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Django (>=4.2)
Requires-Dist: Wagtail (>=7.0)
Requires-Dist: mosparo-django (>=1.0.7)
Project-URL: Repository, https://github.com/unicode-it/wagtail-mosparo
Description-Content-Type: text/markdown

# Wagtail Mosparo

A Wagtail integration for mosparo spam protection. This package provides a form mixin that adds mosparo spam protection to Wagtail forms.

## Requirements

- Django >= 4.2
- Wagtail >= 7.0
- mosparo-django >= 1.0.7

## Installation

```bash
pip install wagtail-mosparo
```

## Setup

1. Add **both** `mosparo_django` and `wagtail_mosparo` to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    # ...
    'mosparo_django',
    'wagtail_mosparo',
]
```

2. Configure mosparo-django in your settings:

```python
MOSPARO_HOST = 'https://...'
MOSPARO_UUID = '...'
MOSPARO_PUBLIC_KEY = '...'
MOSPARO_PRIVATE_KEY = '...'
MOSPARO_VERIFY_SSL = True
```

See the [mosparo-django documentation](https://github.com/mosparo/mosparo-django) for full configuration options.

## Usage

```python
from wagtail.contrib.forms.models import FormPage
from wagtail_mosparo.mixins import WagtailMosparoFormMixin

class MyFormPage(WagtailMosparoFormMixin, FormPage):
    pass
```

The mixin adds a mosparo field (named `wagtailmosparo`) with the label "Spam protection" to your forms.

## License

MIT License. See [LICENSE](LICENSE) for details.

