semvec/pypi-packages huggingface dataset:
lunatone-dali2-iot 1.1.0
A client library for accessing Dali IoT
License: MIT
Requires Python: <4.0,>=3.12

# 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)
```