Metadata-Version: 2.4
Name: py2n-intercom
Version: 0.1.28
Summary: Async Python client for the 2N IP intercom HTTP API
Project-URL: Source, https://github.com/genka13/py2n-intercom
Project-URL: Issues, https://github.com/genka13/py2n-intercom/issues
Author-email: Gerald Docenko <genka13@users.noreply.github.com>
License: MIT
License-File: LICENSE
Keywords: 2n,home-assistant,intercom
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Home Automation
Requires-Python: >=3.12
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: yarl>=1.9.0
Description-Content-Type: text/markdown

# py2n-intercom

Async Python client for the 2N IP intercom HTTP API (`/api/*`) and related RTSP endpoints.

This library is designed to be consumed by the Home Assistant `2n_intercom` integration, but can be used standalone.

## Supported devices / firmware

- 2N IP Style
- 2N IP Verso 2
- 2N IP One
- Firmware: **2.5+** (tested on 3.x)

## Install

```bash
pip install py2n-intercom
```

## Quick example

```python
import aiohttp
from py2n_intercom import Py2NClient

async def main():
    async with aiohttp.ClientSession() as session:
        client = Py2NClient(session, base_url="https://192.168.1.21", username="admin", password="***", auth_method="digest")
        info = await client.async_get_device_info()
        print(info)
```

## Development

Home Assistant developers can test the library in editable mode:

```bash
pip install -e .
```

Publish is expected to be automated via GitHub Actions on tags.
