entirius-py-magento2-sdk2
A Python client for the catalog side of the Magento 2 REST API, part of Entirius, the open-source modular ecommerce platform. It covers products, prices, pictures, attributes, customers, stores and search, with typed payloads.
What it does
- Saves products, product attributes, prices and special prices, one at a time or in batches.
- Uploads product pictures and reads store views, websites, attribute sets and categories.
- Reads, updates and deletes product attributes and adds attribute options.
- Searches and suggests products, and posts customers in batches.
- Authorizes with a Bearer token or Basic credentials; SSL verification can be switched off for test stores.
Installation
uv add entirius-py-magento2-sdk2
pip install entirius-py-magento2-sdk2
The import name is magento2_sdk2.
Quick start
from magento2_sdk2.services.client import Magento2Client
from magento2_sdk2.services.worker import search
from magento2_sdk2.dto.search import SearchParameters
client = Magento2Client(base_url="https://magento.example.com/rest/", access_token="...")
results = search(client, SearchParameters(search_text="shoes"))
Requirements
- Python 3.11 or newer.
requests,marshmallow,marshmallow-dataclass(installed as dependencies).- A Magento 2 store with a REST API integration token.
Documentation
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-py-magento2-sdk2/blob/develop/CHANGELOG.md
Part of Entirius
This SDK is the catalog and customer client of the bridges that connect the Entirius backend service (Volkanos) to an existing Magento 2 store.
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Bridges that use it: https://github.com/entirius/entirius-django-pim-export-to-magento-api, https://github.com/entirius/entirius-django-accounts-export-to-magento-api
- Sibling SDK (the order side): https://github.com/entirius/entirius-py-magento2-sdk
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest); the integration tests are skipped without MAGENTO2_URL / MAGENTO2_TOKEN
Development and agent instructions: https://github.com/entirius/entirius-py-magento2-sdk2/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-py-magento2-sdk2/blob/develop/LICENSE.
Metadata
Release files for entirius-py-magento2-sdk2 2.1.0
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_py_magento2_sdk2-2.1.0.tar.gz | 47.2 kB | Without provenance | Details for entirius_py_magento2_sdk2-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_py_magento2_sdk2-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for entirius_py_magento2_sdk2-2.1.0-py3-none-any.whl |
Total release size: 75.9 kB
Release files / entirius_py_magento2_sdk2-2.1.0.tar.gz
| Download URL | entirius_py_magento2_sdk2-2.1.0.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9722712dc43d64113dc32da27d4b5285c32d934428f0c3601dcd084b7337474
|
|
BLAKE2b-256 checksum How to use checksums |
04ab97c976b4d031266714763f0145b1b50d32f3d8d766b9f5a2e7fb12679b35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / entirius_py_magento2_sdk2-2.1.0-py3-none-any.whl
| Download URL | entirius_py_magento2_sdk2-2.1.0-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49d48379af96fe8fbdf6d8d9873824324ce790f053798aadbd1141ee6bad1dd1
|
|
BLAKE2b-256 checksum How to use checksums |
6fbb884caa09b96a21ccf132b8dc43da661e6b8b5858c281fbbaac172c75358c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for entirius-py-magento2-sdk2 2.1.0
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.