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.1.tar.gz (27.7 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.1-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_surepetcare-0.6.1.tar.gz
  • Upload date:
  • Size: 27.7 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.1.tar.gz
Algorithm Hash digest
SHA256 fcdd831b4b772bbef8aadbd78b15d54b8704495c1f82390f8654aef12ff27cb4
MD5 6506ba6361e8d88f39330a37700379b1
BLAKE2b-256 70116dd2cfc7d0f5e2b8b11d3675778f8a412f372bbcde2ad1a4a77d6446432a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: py_surepetcare-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 42.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ceaa481794dbe9a680b58b5441ecd6ac2b64cdb5f71f2dd418152ccccff573b
MD5 db976cde3d050a7618d6af61214a1527
BLAKE2b-256 6e78a475f7a5b092baf0b886979308d2b3771469f74025530a9141a4d80ad9d8

See more details on using hashes here.

Provenance

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