Metadata-Version: 2.1
Name: adjust-client
Version: 1.0.4
Summary: Adjust.com python API client
License: MIT
Author: Grebenshchikov Dmitry
Author-email: mtizima@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: httpx (>=0.25.0,<0.26.0)
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
Requires-Dist: tenacity (>=8.5.0,<9.0.0)
Description-Content-Type: text/markdown

# Adjust Client Library


# adjust-client

[![Build Status](https://github.com/mtizima/adjust-client/actions/workflows/python-package.yml/badge.svg)](https://github.com/mtizima/adjust-client/actions/workflows/python-package.yml)

The Adjust Client Library is a Python library for sending events to Adjust using the HTTP API. It includes functionality for validation, error handling, and retry mechanisms.

## Installation

The Adjust Client Library is available on PyPI. You can install it using pip or poetry:

```bash
pip install adjust-client
```

```bash 
poetry add adjust-client
```

## Usage

To use the Adjust Client Library, you need to create an instance of the `AdjustClient` class. You can then use the `send_event` method to send events to Adjust.

```python
from adjust_client import AdjustClientConfig, AdjustClient
config = AdjustClientConfig(app_token='your_app_token')

event_data = {
    'idfa': 'D2CADB5F-410F-4963-AC0C-2A78534BDF1E',
    'adid': 'test_adid',
    'ip_address': '192.168.0.1',
    'created_at_unix': 1625077800,
    'created_at': '2021-06-30T12:30:00Z'
}
client = AdjustClient(config)
await client.send_event(event_data)
```
