Skip to main content

GitHub Release GitHub Activity License

Project Maintenance BuyMeCoffee

Api Wrapper for Hatch Rest mini API using async in python, this was inspired by this guide to be a lightweight wrapper, with simple error handling.

a lot of this is a port of homebridge-hatch-baby-rest from node.

Device notes:

Live Smoke Test

The live smoke test connects to a real Hatch account, discovers its devices, connects them to AWS IoT, prints their shadow state, listens for real-time shadow updates, and sends one sample control update to the first device.

scripts/live_smoke_test

Use it only when you want to exercise the live Hatch APIs. The sample control update writes the first device's current volume back to it, so the setting is unchanged but the control path and shadow update are exercised. The script then waits 5 minutes so MQTT messages can be observed.

To run non-interactively, put credentials in a local env file and pass it with --credentials-file. Supported keys are HATCH_EMAIL/HATCH_PASSWORD (see scripts/hatch_rest_api.env.example); TOML and JSON files with email/password keys also work, as do HATCH_EMAIL/HATCH_PASSWORD environment variables.

scripts/live_smoke_test --credentials-file scripts/hatch_rest_api.env --output-file /private/tmp/hatch_rest_api.txt --read-only

Other options:

  • --output-file writes a full transcript (stdout, stderr, and logs) for later API debugging or fixture updates.
  • --read-only skips the sample control update while still loading devices and listening for MQTT messages.

Metadata

Release files for hatch-rest-api 1.41.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hatch-rest-api 1.41.1
File Size Uploaded Provenance Actions
hatch_rest_api-1.41.1.tar.gz 84.3 kB Without provenance Details for hatch_rest_api-1.41.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hatch-rest-api 1.41.1
File Interpreter ABI Platform Actions
hatch_rest_api-1.41.1-py3-none-any.whl Python 3 none any Details for hatch_rest_api-1.41.1-py3-none-any.whl

Total release size: 153.3 kB

Release files / hatch_rest_api-1.41.1.tar.gz

Download URL hatch_rest_api-1.41.1.tar.gz
Size 84.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d08876a137e5416c9746c8ff0873fc10e18f4ac4b83971d8022481d5dc514a2a
BLAKE2b-256 checksum
How to use checksums
7795bde63c143da43d2ba09e16161948a886e0e77a7f670d0de5fcb0a7e20e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hatch_rest_api-1.41.1-py3-none-any.whl

Download URL hatch_rest_api-1.41.1-py3-none-any.whl
Size 69.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73777e07d3637b5ab6363c3c5e2a6bf25b4ab802ae48b75473577653504921f1
BLAKE2b-256 checksum
How to use checksums
c6866c4fdd150404e68d9ebfc5ac56c81a1aa8b8bc9c349282e33eb6313b320a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hatch-rest-api 1.41.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.41.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page