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.0.tar.gz (27.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.0-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_surepetcare-0.6.0.tar.gz
  • Upload date:
  • Size: 27.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.0.tar.gz
Algorithm Hash digest
SHA256 d29e5f58fd4d88044fdf808fe73314e4886d0c27a704890fb38dc212040f30f1
MD5 4c67359fdf563463e7bc97aee00dc869
BLAKE2b-256 187415b143afce19439d0308a9a19268711e6ec0df87aa5064293c7148425d03

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: py_surepetcare-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 42.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 587d1d73c0df1d78f5027b67573b270c90fdda19c30b157217ed4f74598a4fd9
MD5 23e2b751530a3e466f1b2295024dc6de
BLAKE2b-256 277ea8bec2480a1bee1715e7ff91cfec42d87060c2964e49112fdde0abe32d65

See more details on using hashes here.

Provenance

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