Metadata-Version: 2.5
Name: entirius-django-stock-alerts
Version: 0.1.0
Summary: Back-in-stock alerts for Entirius: storefront requests, consent and GDPR hooks
Project-URL: Homepage, https://docs.entirius.com/
Project-URL: Documentation, https://github.com/entirius/entirius-django-stock-alerts/tree/develop/docs
Project-URL: Repository, https://github.com/entirius/entirius-django-stock-alerts
Project-URL: Changelog, https://github.com/entirius/entirius-django-stock-alerts/blob/develop/CHANGELOG.md
Project-URL: Issues, https://github.com/entirius/entirius-django-stock-alerts/issues
Author: Entirius
License-Expression: MPL-2.0
License-File: LICENSE
Keywords: back-in-stock,django,ecommerce,entirius,notify-me,stock-alerts
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
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 :: Office/Business
Requires-Python: >=3.11
Requires-Dist: celery>=5.3
Requires-Dist: django>=5.0
Requires-Dist: djangorestframework>=3.14
Requires-Dist: drf-spectacular>=0.27
Requires-Dist: entirius-django-email>=4.4.0
Requires-Dist: entirius-django-matrix>=4.5.0
Requires-Dist: entirius-django-utils>=2.4.0
Requires-Dist: pydantic[email]>=2.0
Provides-Extra: access
Requires-Dist: entirius-django-access>=1.1.0; extra == 'access'
Provides-Extra: agreements
Requires-Dist: entirius-django-agreements>=3.1.0; extra == 'agreements'
Provides-Extra: dev
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: test
Requires-Dist: dj-database-url>=2.0; extra == 'test'
Requires-Dist: entirius-django-agreements>=3.1.0; extra == 'test'
Requires-Dist: psycopg[binary]>=3.1; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-django; extra == 'test'
Description-Content-Type: text/markdown

# entirius-django-stock-alerts

Back-in-stock alerts for [Entirius](https://docs.entirius.com/): a storefront saves a request for a sold-out
variant ("email me when it is back"), with the consent the person gave, and cancels it from a signed email link.

- One waiting request per address and variant; repeated requests answer the same, so nobody learns whether an
  address had one.
- Bots and floods kept out without a captcha: honeypot field, per-client and per-address throttles, a cap of
  waiting requests per address.
- Consent stored on the request (time and exact text) and, where `entirius-django-agreements` is installed, as a
  consent record in the agreements panel.
- GDPR hooks: export and erasure of a person's requests.

Requires `entirius-django-matrix` (catalogue and saleable quantity) and `entirius-django-utils`. Optional:
`entirius-django-access` (channel key on the subscribe route), `entirius-django-agreements` (consent records).

## Install

```bash
uv add entirius-django-stock-alerts
```

Wiring, settings and the agreement fixture: [`docs/install.md`](docs/install.md). API: [`docs/api.md`](docs/api.md).

## Development

```bash
make install
make check
make test   # PostgreSQL: DATABASE_URL, see docs/testing.md
```

## License

[MPL-2.0](LICENSE)
