Metadata-Version: 2.4
Name: spypoint-api
Version: 0.4.3
Summary: Library to communicate with Spypoint REST api
Project-URL: Homepage, https://github.com/happydev-ca/spypoint-api
Project-URL: Issues, https://github.com/happydev-ca/spypoint-api/issues
Author-email: Francois Perron <fperron@gmail.com>
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Home Automation
Requires-Python: >=3.13
Requires-Dist: aiohttp
Description-Content-Type: text/markdown

[![Build, test and publish](https://github.com/happydev-ca/spypoint-api/actions/workflows/publish.yml/badge.svg)](https://github.com/happydev-ca/spypoint-api/actions/workflows/publish.yml)

# spypoint-api

Library to communicate with Spypoint REST API.

## Usage

```python
import aiohttp
import asyncio
import os

from spypointapi import SpypointApi


async def run():
    async with aiohttp.ClientSession() as session:
        api = SpypointApi(os.environ['EMAIL'], os.environ['PASSWORD'], session)

        cameras = await api.async_get_cameras()
        for camera in cameras:
            print(camera)


asyncio.run(run())
```

### Build and test locally

```shell
make venv
source .venv/bin/activate
make test
make build
```

### Logging

Enable debug level to log API requests and responses.
```python
import logging
logging.basicConfig(level=logging.DEBUG)
```

### Release version

```shell
make release bump=patch|minor|major
```