Metadata-Version: 2.1
Name: marketplace_handler
Version: 3.0.9
Summary: Module to interact with marketplaces
Home-page: https://github.com/derijablya/marketplace-interface
Author: derijabyla
Author-email: dulugov@gmail.com
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.6.1
Requires-Dist: requests>=2.31.0

# marketplace_handler

Package to interact with marketplaces.

## Installation

### pip
```bash
pip install marketplace_handler
```

### poetry
```bash
poetry add marketplace_handler
```

## Usage
### Wildberries

```python
from marketplace_handler import Wildberries, WbAccount

wb = Wildberries(
    account_data=WbAccount(
        name="name",
        common_token="common_token",
        statistic_token="statistic_token",
        warehouse_id="warehouse_id",
        x_supplier_id="x_supplier_id",
    ),
    mapping_url="mapping_url",
    mapping_token="mapping_token",
)
```        
### Ozon

```python
from marketplace_handler import Ozon, OzonAccount

ozon = Ozon(
    account_data=OzonAccount(
        name="name",
        api_key="api_key",
        client_id="client_id",
        warehouse_id="warehouse_id",
    ),
    mapping_url="mapping_url",
    mapping_token="mapping_token",
)
```
### Yandex

```python
from marketplace_handler import Yandex, YandexAccount

yandex = Yandex(
    account_data=YandexAccount(
        name="name",
        token="token",
        business_id="business_id",
        campaign_id="campaign_id",
    ),
    mapping_url="mapping_url",
    mapping_token="mapping_token",
)
```


TEST
