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.3.tar.gz (28.4 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.3-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_surepetcare-0.6.3.tar.gz
  • Upload date:
  • Size: 28.4 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.3.tar.gz
Algorithm Hash digest
SHA256 d817650d307500051a62a3e8d149ae033b76794186a59968a6213ceeed33db38
MD5 bf772be16fb8503a4601b94cb4a2cde1
BLAKE2b-256 dbe539790dde3fad60e4c89aa066ad48b67bd6e4129c0c8605f59ae21c073535

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_surepetcare-0.6.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: py_surepetcare-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 43.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c44f07e8903d115656fb6a9877daa10bd671123a2ff2966351769a40fcfa461
MD5 63de43ab4cc19236c4ab169bc4522330
BLAKE2b-256 f02dfda13554ca4d5aae40942dbcf57798820339c5b55e91e8b7275b4dda5638

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_surepetcare-0.6.3-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