Skip to main content

Python library for SurePetcare API

Project description

SurePetcare API Client

PyPI Version Python Version Docs

Tests Coverage Downloads License Dev Container


About

Python client for interacting with the SurePetcare API:

https://app-api.beta.surehub.io/index.html?urls.primaryName=V1

Includes:

  • Core async IO client (surepcio)
  • CLI tool (surepccli)

For Home Assistant integration see: https://github.com/FredrikM97/hass-surepetcare

CLI

This repo also support (to some extent) cli commands. The cli can be installed with uv sync --extra cli and is not included by default.

To see available commands use:

surepccli --help

However, most functionality requires login therefore use the

surepccli account login <email> 

It is possible to fetch available households with:

surepccli household

There is also support to store some properties in .env file. Check available properties to the household and device for more info.

Supported devices

  • Hub
  • Pet door
  • Feeder Connect
  • Dual Scan Connect
  • Dual Scan Pet Door
  • poseidon Connect
  • No ID Dog Bowl Connect

Enjoy the integration?

Star ⭐ the repository to help others discover the integration.

Sponsor FredrikM97 Static Badge

Contributing

  1. Before pushing validate the changes with: pre-commit run --all-files..
  2. Run uv sync --all-extras --dev to install development dependencies from uv.lock.
  3. Use uv lock when dependency constraints change and commit the updated uv.lock.
  4. Run tests with uv run pytest tests and snapshot updates with uv run pytest --snapshot-update tests.
  5. For a quick vulnerability check against the lockfile: uv export --frozen --all-extras --format requirements-txt --no-hashes -o requirements.lock.txt && uv tool run --from pip-audit pip-audit -r requirements.lock.txt.
  6. Start application and enable debug. The debug logs contain request data that can be provided with an issue and for snapshot testing.

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

py_surepetcare-0.6.2.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

py_surepetcare-0.6.2-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file py_surepetcare-0.6.2.tar.gz.

File metadata

  • Download URL: py_surepetcare-0.6.2.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py_surepetcare-0.6.2.tar.gz
Algorithm Hash digest
SHA256 f96232c725ccc2a6e33d165ebc0483a028961ec359fb0bb541e5543bede2ba7d
MD5 477f90dd0f036fd839c181ed15f262eb
BLAKE2b-256 eca1014f97522087757cf3758c44b4b90b833526e91b5de159a9a27a80e6c273

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_surepetcare-0.6.2.tar.gz:

Publisher: release.yml on FredrikM97/py-surepetcare

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

File details

Details for the file py_surepetcare-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: py_surepetcare-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for py_surepetcare-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09d6490ee773cc3999018ef9f8744f7a960beb0272e0a9d4b213c7d68445a2b5
MD5 32255219d534556cb78de1bfb24e9bd5
BLAKE2b-256 247f495073dfd18fb0a8e6bf4b746f1b551a5102145ac99b9c086b754a64769d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_surepetcare-0.6.2-py3-none-any.whl:

Publisher: release.yml on FredrikM97/py-surepetcare

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