Metadata-Version: 2.4
Name: entirius-django-accounts-export-to-magento-api
Version: 2.0.0
Summary: Customer accounts export from Django Accounts to Magento via the Magento REST API
Project-URL: Repository, https://github.com/entirius/entirius-django-accounts-export-to-magento-api
Author: Entirius
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: celery-once>=3.0.1
Requires-Dist: celery>=5.4
Requires-Dist: django-allauth>=0.45.0
Requires-Dist: django>=5.0
Requires-Dist: entirius-django-accounts>=5.0.0
Requires-Dist: entirius-py-idx-normalizator>=2.0.0
Requires-Dist: entirius-py-magento2-sdk2>=2.0.0
Requires-Dist: entirius-py-process-logger>=2.0.0
Requires-Dist: marshmallow-dataclass>=8.5
Requires-Dist: marshmallow>=3.19
Requires-Dist: tqdm
Provides-Extra: dev
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: test
Requires-Dist: entirius-django-captcha>=2.0.0; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-django; extra == 'test'
Description-Content-Type: text/markdown

# Django Accounts Export to Magento API

Customer accounts export from
[entirius-django-accounts](https://github.com/entirius/entirius-django-accounts) to Magento via the
Magento REST API. Celery-driven bulk export with per-customer status tracking.

## Installation

```shell
pip install entirius-django-accounts-export-to-magento-api
```

Add the app to your project:

```python
INSTALLED_APPS = [
    ...
    "django_accounts_export_to_magento_api",
]
```

Requires `django_accounts` in `INSTALLED_APPS` and the settings
`MAGENTO2_URL_FOR_CHECKOUT_EXPORT` + `MAGENTO2_TOKEN_FOR_CHECKOUT_EXPORT`.

## Usage

```bash
python manage.py all-accounts-export-to-magento [--force_all_accounts] [--bulk_size N] [--celery]
```

Log codes reference: [docs/log_codes.md](docs/log_codes.md).

## Development

```shell
make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django)
```

Architecture and settings reference: [AGENTS.md](AGENTS.md).

## License

Mozilla Public License 2.0 — see [LICENSE](LICENSE).
