Skip to content

happydev-ca/spypoint-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build, test and publish

spypoint-api

Library to communicate with Spypoint REST API.

Usage

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

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

Logging

Enable debug level to log API requests and responses.

import logging
logging.basicConfig(level=logging.DEBUG)

Release version

make release bump=patch|minor|major

About

Library to communicate with Spypoint REST API.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors