Skip to main content

entirius-django-accounts-export-to-magento-api

A Django module that exports customer accounts from Entirius, the open-source modular ecommerce platform, to an existing Magento 2 store over its REST API. Accounts go out in bulk requests, and the result is tracked per customer so that a re-run sends only the accounts that were never sent.

PyPI Python License: MPL-2.0

What it does

  • Exports customer accounts to Magento 2 with bulk customer requests.
  • Tracks the export state of every customer, with a hash of the data that was sent.
  • Skips customers that already have an export record; a force option sends all of them again.
  • Maps each source channel of the accounts to a Magento store.
  • Runs in the calling process or as a single-instance Celery task.

Installation

uv add entirius-django-accounts-export-to-magento-api
pip install entirius-django-accounts-export-to-magento-api
INSTALLED_APPS = [
    ...
    "django_accounts",
    "django_accounts_export_to_magento_api",
]

django_accounts brings its own app requirements. Required settings: MAGENTO2_URL_FOR_CHECKOUT_EXPORT and MAGENTO2_TOKEN_FOR_CHECKOUT_EXPORT, the same pair the checkout bridges read; reference in https://github.com/entirius/entirius-django-accounts-export-to-magento-api/blob/develop/AGENTS.md (section Settings).

Quick start

# settings.py
MAGENTO2_URL_FOR_CHECKOUT_EXPORT = "https://magento.example.com/rest/"
MAGENTO2_TOKEN_FOR_CHECKOUT_EXPORT = "<api-token>"

# a shell or a scheduled job
from django.core.management import call_command

call_command("all-accounts-export-to-magento", bulk_size=100)

bulk_size is the number of accounts per request. Every source channel of the exported accounts needs a Channel of this module (Django admin) that names its Magento store; the export stops when one is missing.

Requirements

  • Python 3.11 or newer, Django 5.0 or newer.
  • Celery with a configured celery-once backend: the task module imports it.
  • django-allauth (any service that runs django_accounts has it).
  • A Magento 2 store with a REST API integration token.
  • Entirius packages pulled in: entirius-django-accounts, entirius-py-magento2-sdk2, entirius-py-process-logger, entirius-py-idx-normalizator.

Documentation

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.

Development

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

Development and agent instructions: https://github.com/entirius/entirius-django-accounts-export-to-magento-api/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-accounts-export-to-magento-api/blob/develop/LICENSE.

Metadata

Release files for entirius-django-accounts-export-to-magento-api 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entirius-django-accounts-export-to-magento-api 2.0.1
File Size Uploaded Provenance Actions
entirius_django_accounts_export_to_magento_api-2.0.1.tar.gz 88.7 kB Without provenance Details for entirius_django_accounts_export_to_magento_api-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-accounts-export-to-magento-api 2.0.1
File Interpreter ABI Platform Actions
entirius_django_accounts_export_to_magento_api-2.0.1-py3-none-any.whl Python 3 none any Details for entirius_django_accounts_export_to_magento_api-2.0.1-py3-none-any.whl

Total release size: 108.1 kB

Release files / entirius_django_accounts_export_to_magento_api-2.0.1.tar.gz

Download URL entirius_django_accounts_export_to_magento_api-2.0.1.tar.gz
Size 88.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9acc40d9dff19bb0dda11bf5923638f8fbb7641e9a5e4d4aad2d673bec37ff0b
BLAKE2b-256 checksum
How to use checksums
35c7791bcbd1235bd16b1c2f91b072644e827e134a814207b640bea089ef47c8
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_accounts_export_to_magento_api-2.0.1-py3-none-any.whl

Download URL entirius_django_accounts_export_to_magento_api-2.0.1-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34fb88dac02ac61f7f79da3a2ccf44d1b6063a625848932b44a4ab6564d918b8
BLAKE2b-256 checksum
How to use checksums
9449b6de2f4fb9ab691373cd7917a46c47d330b82e23b20637dc55b2d2511f08
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-accounts-export-to-magento-api 2.0.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.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page