entirius-django-pim-export-to-magento-api
A Django module that exports the product catalog of Entirius, the open-source modular ecommerce platform, to an existing Magento 2 store over its REST API. Products, prices, pictures and attributes are pushed per channel and store view, from management commands or Celery tasks.
What it does
- Exports products with their attributes to Magento 2, one store view at a time, with a fallback price for products the price manager has no price for.
- Exports prices from the latest price list of the price manager.
- Exports product pictures, mapping picture roles to Magento image types.
- Sends attribute values, syncs the options of select attributes and matches Magento attributes to catalog features.
- Keeps the export state of every product, with the failure message when Magento rejects it.
- Maps each channel to its Magento store views; products, prices and pictures are switched on per store view.
Installation
uv add entirius-django-pim-export-to-magento-api
pip install entirius-django-pim-export-to-magento-api
INSTALLED_APPS = [
...
"django_regional",
"django_utils",
"django_pim",
"django_pricemanager",
"django_pim_export_to_magento_api",
]
Required settings: MAGENTO2_EXPORT_API_URL and MAGENTO2_EXPORT_API_TOKEN. Optional settings:
PICTURE_ROLE_TO_MAGENTO_TYPE, PICTURE_POSITION_TO_MAGENTO, PICTURES_ONLY_LANGUAGE, PRODUCT_DEFAULT_PRICE;
reference with defaults in
https://github.com/entirius/entirius-django-pim-export-to-magento-api/blob/develop/AGENTS.md (section Settings).
Quick start
# settings.py
MAGENTO2_EXPORT_API_URL = "https://magento.example.com/rest/"
MAGENTO2_EXPORT_API_TOKEN = "<api-token>"
# a shell or a scheduled job
from django.core.management import call_command
call_command("export-products-to-magento", channel_idx="default")
channel_idx is the idx of a Channel configured in the Django admin together with its Magento store views;
without it the command runs for every channel.
Requirements
- Python 3.11 or newer, Django 5.0 or newer.
- PostgreSQL (through
entirius-django-pim). - Celery with a configured
celery-oncebackend: every task module imports it. - A Magento 2 store with a REST API integration token.
- Entirius packages pulled in:
entirius-django-pim,entirius-django-pricemanager,entirius-django-regional,entirius-django-utils,entirius-py-magento2-sdk2,entirius-py-process-logger,entirius-py-idx-normalizator.
Documentation
- Module docs (management commands): https://github.com/entirius/entirius-django-pim-export-to-magento-api/tree/develop/docs
- Entirius documentation: https://docs.entirius.com/
- Releases: https://github.com/entirius/entirius-django-pim-export-to-magento-api/releases
Part of Entirius
This module runs inside the Entirius backend service (Volkanos) and is one of the bridges that connect it to an existing Magento 2 store.
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Product and price modules: https://github.com/entirius/entirius-django-pim, https://github.com/entirius/entirius-django-pricemanager
- Magento 2 SDK it uses: https://github.com/entirius/entirius-py-magento2-sdk2
- Sibling bridges: https://github.com/entirius/entirius-django-checkout-export-to-magento-api, https://github.com/entirius/entirius-django-checkout-import-from-magento-api, https://github.com/entirius/entirius-django-accounts-export-to-magento-api
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest + pytest-django, import smoke test on sqlite)
Development and agent instructions: https://github.com/entirius/entirius-django-pim-export-to-magento-api/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-pim-export-to-magento-api/blob/develop/LICENSE.
Metadata
Release files for entirius-django-pim-export-to-magento-api 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| entirius_django_pim_export_to_magento_api-2.1.1.tar.gz | 139.9 kB | Without provenance | Details for entirius_django_pim_export_to_magento_api-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_django_pim_export_to_magento_api-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for entirius_django_pim_export_to_magento_api-2.1.1-py3-none-any.whl |
Total release size: 182.2 kB
Release files / entirius_django_pim_export_to_magento_api-2.1.1.tar.gz
| Download URL | entirius_django_pim_export_to_magento_api-2.1.1.tar.gz |
|---|---|
| Size | 139.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4971905f0976e5edf127b6f08aa9664ae0e4ec57a9119e767cd6142a21c52c4d
|
|
BLAKE2b-256 checksum How to use checksums |
c89de9e34c7e0bcac3f353d9ff27387138ec2bb338e0a78cae6c4d9fca22de80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / entirius_django_pim_export_to_magento_api-2.1.1-py3-none-any.whl
| Download URL | entirius_django_pim_export_to_magento_api-2.1.1-py3-none-any.whl |
|---|---|
| Size | 42.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a43bea6c4932d54783e74d996dee73ef5165b4b2538a13868284e44604eb466
|
|
BLAKE2b-256 checksum How to use checksums |
07539f2ff3733b732d906fd32f780ebadd50030fd0b72b95a1b3ba21f13f95f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for entirius-django-pim-export-to-magento-api 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.