entirius-py-salesmanago-sdk
A Python client for the SALESmanago marketing automation REST API, part of Entirius, the open-source modular ecommerce platform.
It creates, modifies and deletes contacts and enrolls contacts in a loyalty program and reads and changes their points behind one SalesmanagoClient class.
What it does
- Creates or modifies a contact from a typed
CustomerDataDTO (create_or_modify_customer()). - Deletes one contact or a batch of contacts (
delete_customer(),batch_delete_customer()). - Enrolls a contact in a loyalty program (
add_contact_to_loyalty_program()), reads and modifies its points (get_loyalty_points(),modify_loyalty_points()). - Raises
SalesmanagoErrorwhen the API answers with an error or an unexpected body.
Installation
uv add entirius-py-salesmanago-sdk
pip install entirius-py-salesmanago-sdk
The import name is salesmanago_sdk.
The SDK reads one Django setting, SALESMANAGO_API_URL (default https://www.salesmanago.pl/api/); set it in the
project settings to target another endpoint. It is not a Django app: no INSTALLED_APPS entry is needed.
Quick start
from salesmanago_sdk.dto.customer import CustomerContact, CustomerData
from salesmanago_sdk.services.client import SalesmanagoClient
client = SalesmanagoClient(clientId="...", apiKey="...", sha="...", owner="...")
client.create_or_modify_customer(
customer_data=CustomerData(contact=CustomerContact(email="user@example.com")),
)
Requirements
- Python 3.11 or newer.
- Django 4.2 or newer, with settings configured before the package is imported.
requestsandmarshmallow(installed as dependencies).- A SALESmanago account (client id, API key, SHA, owner).
Documentation
- Entirius documentation: https://docs.entirius.com/
- Changelog: https://github.com/entirius/entirius-py-salesmanago-sdk/blob/develop/CHANGELOG.md
Part of Entirius
This SDK is one of the marketing integration clients used by the Entirius backend service (Volkanos).
- Backend service: https://github.com/entirius/entirius-service-volkanos
- Docker harness: https://github.com/entirius/entirius-zeno
- Sibling marketing SDKs: https://github.com/entirius/entirius-py-edrone-sdk, https://github.com/entirius/entirius-py-get-response-sdk, https://github.com/entirius/entirius-py-synerise-sdk
Development
make install # sync dependencies (uv)
make check # lint + format check (ruff)
make test # test suite (pytest); integration tests are skipped without SALESMANAGO_* credentials
Development and agent instructions: https://github.com/entirius/entirius-py-salesmanago-sdk/blob/develop/AGENTS.md
License
Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-py-salesmanago-sdk/blob/develop/LICENSE.
Metadata
Release files for entirius-py-salesmanago-sdk 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_salesmanago_sdk-2.1.0.tar.gz | 38.3 kB | Without provenance | Details for entirius_py_salesmanago_sdk-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| entirius_py_salesmanago_sdk-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for entirius_py_salesmanago_sdk-2.1.0-py3-none-any.whl |
Total release size: 52.6 kB
Release files / entirius_py_salesmanago_sdk-2.1.0.tar.gz
| Download URL | entirius_py_salesmanago_sdk-2.1.0.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6af84a9bfb5d9d41cbb65580e7a130b1212750f01359cccb5c4793c8cfbe3a93
|
|
BLAKE2b-256 checksum How to use checksums |
5d7b937e2e390a541c6624f07036b336586d7ea80e0810e7b38daef1a7640497
|
| 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_salesmanago_sdk-2.1.0-py3-none-any.whl
| Download URL | entirius_py_salesmanago_sdk-2.1.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd14c8666eb4a6bfcd5d177a3e13e787c56fe4a0de68a566d33ca161bb74f3d6
|
|
BLAKE2b-256 checksum How to use checksums |
f35b0690c767f1bbb03961ef4aff9d9c5a051a634ad0072474666fc819c75bcf
|
| 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-salesmanago-sdk 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.