Metadata-Version: 2.4
Name: pyglutz-eaccess
Version: 0.2.2
Summary: Async client for the Glutz eAccess JSON-RPC API.
Project-URL: Homepage, https://github.com/miitchpls/pyglutz-eaccess
Project-URL: Issues, https://github.com/miitchpls/pyglutz-eaccess/issues
Author: Michele Greco
License: MIT License
        
        Copyright (c) 2026 Michele Greco
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: access-control,eaccess,glutz,home-assistant
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Home Automation
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: aiohttp>=3.9
Description-Content-Type: text/markdown

# pyglutz-eaccess

Async Python client for the [Glutz eAccess](https://www.glutz.com/) cloud-based access control JSON-RPC API.

This library powers the [hass-glutz-eaccess](https://github.com/miitchpls/hass-glutz-eaccess) Home Assistant integration and is published independently for reuse.

## Installation

```bash
pip install pyglutz-eaccess
```

## Usage

```python
import aiohttp
from pyglutz_eaccess import GlutzAPI

async def main():
    async with aiohttp.ClientSession() as session:
        api = GlutzAPI(session, "https://instance.eaccess.glutz.com", "user@example.com", "password")
        points = await api.get_access_points()
        print(points)
```

## Exported API

- `GlutzAPI` — JSON-RPC client (`get_access_points`, `get_system_info`, `open_access_point`,`hold_open_access_point`, `close_access_point`).
- `GlutzAuthError`, `GlutzConnectionError` — error types.
- `parse_invitation(url)` — parse web/mobile invitation URLs.
- `resolve_instance_host(session, cloud_host, system_path)` — follow the cloud redirect to find the instance host.
- `set_new_password(session, host, token, password)` — activate an account via invitation token.

## License

MIT
