Metadata-Version: 2.3
Name: lunatone-dali2-iot
Version: 1.0.0
Summary: A client library for accessing Dali IoT
License: MIT
Author: KiraLT
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: attrs (>=22.2.0)
Requires-Dist: httpx (>=0.20.0,<0.29.0)
Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
Project-URL: Documentation, https://kiralt.github.io/lunatone-dali2-iot/
Project-URL: Homepage, https://github.com/KiraLT/common-stuff/
Description-Content-Type: text/markdown

# Lunatone Dali-2 IOT

A client library for accessing Lunatone Dali IoT gateway

Read [Documentation 📘](https://kiralt.github.io/lunatone-dali2-iot/)

> The library was generated by [openapi-python-client](https://github.com/openapi-generators/openapi-python-client)

## Installation

```bash
pip install lunatone-dali2-iot
```

## Usage

First, create a client:

```python
from dali2iot import Client

dali_client = Client(base_url="http://192.168.1.41")

```

Now call your endpoint and use your models:

```python
from dali2iot.api.devices import get_devices_devices_get

with dali_client as client:
    devices = get_devices_devices_get.sync(client=client)

    for device in devices.devices:
        print(device.name)
```

Or do the same thing with an async version:

```python
from dali2iot.api.devices import get_devices_devices_get

async with dali_client as client:
    devices = await get_devices_devices_get.asyncio(client=client)

    for device in devices.devices:
        print(device.name)
```

