Metadata-Version: 2.4
Name: netplane-client
Version: 0.1.0
Summary: Async Python client for the Andaru Netplane HTTP/SSE wire API
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/andaru-project/netplane
Project-URL: Issues, https://github.com/andaru-project/netplane/issues
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.9
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Dynamic: license-file

<!-- SPDX-License-Identifier: Apache-2.0 -->
# netplane-client

Async Python client for the [Andaru Netplane](https://github.com/andaru-project/netplane) HTTP API, used by its Home Assistant integration.

```python
import aiohttp
from netplane_client import NetplaneClient

async with aiohttp.ClientSession() as session:
    client = NetplaneClient("http://netplane.local:8099", session, api_token="...")
    devices = await client.list_devices()
```

It raises `NetplaneAuthError` when the server rejects the token and `NetplaneError` for any other failed request.

Licensed under Apache-2.0.
