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.5.13.tar.gz (25.8 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.5.13-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_surepetcare-0.5.13.tar.gz
  • Upload date:
  • Size: 25.8 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.5.13.tar.gz
Algorithm Hash digest
SHA256 11d73a7c1b7bf6ad7e909b84dbec545c7c03a4a371742493f420348c7eec9ff1
MD5 2aea0f2d68eaf6979f79229c62c076ae
BLAKE2b-256 e3b5381162366c75152e2dec7cc8970e88257443f2b414932b6580b07eab73f7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: py_surepetcare-0.5.13-py3-none-any.whl
  • Upload date:
  • Size: 40.1 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.5.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4697e919641531ec042dcc07bff5a5a24a7ef0066c06f503bca1b8de6c5e80bc
MD5 ed7e951da482d55cc224b0f2854d72c1
BLAKE2b-256 9dd6b4ff28ae8f96c6a143a6de0be0ec64cc23007dce3b0e2b939421816acf94

See more details on using hashes here.

Provenance

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