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.4.2.tar.gz (9.6 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.4.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spypoint_api-0.4.2.tar.gz
Algorithm Hash digest
SHA256 4613068b47d3d3c90092758f2df22a7d556e081bd9bf6e5a92ffe37ca36fe5db
MD5 64886b3fe74748f3be4adcac9662d264
BLAKE2b-256 e3b9936e8ae3edbea8f7bbd862fe6671ef1bbdeede0a8585fb2a449e280a46c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for spypoint_api-0.4.2.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.4.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for spypoint_api-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17d86e743e2ad6201877e7ff5c10ad93f312488e86762a0850748210fd9e8146
MD5 93f03dc84cb3d8d3a376c79df27b85a4
BLAKE2b-256 437b7758ddfc8fee902c9450175b2fe0005e23128b7414a3468a033979ac5d5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spypoint_api-0.4.2-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