Skip to main content

Library to communicate with Spypoint REST api

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spypoint_api-0.3.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spypoint_api-0.3.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file spypoint_api-0.3.0.tar.gz.

File metadata

  • Download URL: spypoint_api-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spypoint_api-0.3.0.tar.gz
Algorithm Hash digest
SHA256 711ddd6a4a3b124f3d55bb3eeae1493fd64950b0ebdccf8521dde8183f2476f1
MD5 463904be0bb4df4dd31e30974566089a
BLAKE2b-256 7f138c545b623b169db2aaa1657db0cab613c51c6cb8e853d08f4e2ab21902ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for spypoint_api-0.3.0.tar.gz:

Publisher: publish.yml on happydev-ca/spypoint-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spypoint_api-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: spypoint_api-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spypoint_api-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa23ef6610984c4f20c2d907a0c5a4210a29af0d9ede8f177bcf9fcc91878392
MD5 e9326358268bad537270db77d7f9920d
BLAKE2b-256 75481593617fc0d673bb5a0509663df79cefa3f24a760f20aa0ae93aa4a8c1e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for spypoint_api-0.3.0-py3-none-any.whl:

Publisher: publish.yml on happydev-ca/spypoint-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page