Metadata-Version: 2.4
Name: entirius-django-pim-export-to-magento-api
Version: 2.0.0
Summary: Products, prices, pictures, and attributes export from PIM to Magento via the Magento REST API
Project-URL: Repository, https://github.com/entirius/entirius-django-pim-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>=5.0
Requires-Dist: entirius-django-pim>=3.0.0
Requires-Dist: entirius-django-pricemanager>=4.0.0
Requires-Dist: entirius-django-regional>=2.0.1
Requires-Dist: entirius-django-utils>=2.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: python-slugify
Requires-Dist: tqdm
Provides-Extra: dev
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: test
Requires-Dist: psycopg[binary]; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-django; extra == 'test'
Description-Content-Type: text/markdown

# Django PIM Export to Magento API

Products, prices, pictures, and attributes export from PIM to Magento via the Magento REST API.
Celery-driven, per-channel configuration. Companion module to
[entirius-django-pim](https://github.com/entirius/entirius-django-pim).

## Quick Start

Requires Python 3.11+.

```bash
make install                     # uv sync, incl. extras
make test                        # pytest (smoke imports, sqlite)
```

### Other commands

```bash
make check    # ruff check + format-check
make fix      # auto-fix lint + format
```

## Usage

Add `django_pim_export_to_magento_api` to `INSTALLED_APPS` (requires `django_pim` and
`django_pricemanager`) and set `MAGENTO2_EXPORT_API_URL` + `MAGENTO2_EXPORT_API_TOKEN`.
Exports run via celery tasks or management commands:

```bash
python manage.py export-products-to-magento <shop_idx>
python manage.py export-prices-to-magento <shop_idx>
python manage.py export-product-pictures-to-magento <shop_idx>
python manage.py export-attributes-to-magento <shop_idx>
python manage.py import-magento-attributes <shop_idx>
```

## Details

See `AGENTS.md` for architecture and settings reference.
