Library to communicate with Spypoint REST API.
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())make venv
source .venv/bin/activate
make test
make buildEnable debug level to log API requests and responses.
import logging
logging.basicConfig(level=logging.DEBUG)make release bump=patch|minor|major