Metadata-Version: 2.4
Name: py-unifi-access
Version: 0.1.0
Summary: Python client for the Unifi Access local API with websocket event handling
Author: imhotep
License: Apache-2.0
Project-URL: Homepage, https://github.com/imhotep/py-unifi-access
Project-URL: Repository, https://github.com/imhotep/py-unifi-access
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Requires-Dist: urllib3>=1.26.0
Requires-Dist: websocket-client>=1.9.0

# py-unifi-access

A reusable Python client for the UniFi Access local API with support for websocket event handlers. This repository hosts the shared library used by the Home Assistant custom component in `hass-unifi-access`.

## Features
- REST and websocket support for UniFi Access
- Configurable websocket handler registration
- Door model helpers and normalization utilities

## Installation
```bash
pip install py-unifi-access
```

## Usage
```python
from unifi_access_api import UnifiAccessApiClient

client = UnifiAccessApiClient("https://unifi-access.local")
client.register_websocket_handler("access.logs.add", lambda payload: print(payload))
client.fetch_and_set_doors()
client.start_websocket()
```
