Metadata-Version: 2.4
Name: entirius-py-salesmanago-sdk
Version: 2.0.0
Summary: SALESmanago marketing automation REST API SDK
Project-URL: Repository, https://github.com/entirius/entirius-py-salesmanago-sdk
Author: Entirius
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: django>=4.2
Requires-Dist: marshmallow>=3.19
Requires-Dist: requests>=2.28.1
Provides-Extra: dev
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: test
Requires-Dist: faker; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Description-Content-Type: text/markdown

# salesmanago-sdk

SALESmanago marketing automation SDK — customer create/modify/delete over the SALESmanago REST API.

## Installation

```shell
pip install entirius-py-salesmanago-sdk
```

## Usage

```python
from salesmanago_sdk.services.client import SalesmanagoClient
from salesmanago_sdk.dto.customer import CustomerData, CustomerContact

client = SalesmanagoClient(clientId="...", apiKey="...", sha="...", owner="...")
client.create_or_modify_customer(
    customer_data=CustomerData(contact=CustomerContact(email="user@example.com")),
)
```

`SALESMANAGO_API_URL` is read from Django settings (defaults to the public endpoint) — configure it in your project's
settings if you need to override it.

## Development

```shell
make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest) — integration tests skipped without SALESMANAGO_* credentials
```

Development and agent instructions: [AGENTS.md](AGENTS.md).

## License

Mozilla Public License 2.0 — see [LICENSE](LICENSE).
