Async Python client for Quilt mini-split HVAC systems
Project description
Quilt Python Client
Python client library for Quilt mini-split HVAC systems.
Communicates with the Quilt cloud API via gRPC to control spaces (rooms), indoor units, comfort presets, schedules, and stream real-time updates.
Installation
pip install quilt-hp-python
With the optional CLI:
pip install "quilt-hp-python[cli]"
Quick Start
import asyncio
from quilt_hp import QuiltClient
async def main():
async with QuiltClient("user@example.com") as client:
await client.login(otp_callback=lambda email: input(f"OTP for {email}: "))
# List spaces
for space in await client.list_spaces():
print(f"{space.name}: {space.state.ambient_temperature_c}°C")
# Set a room to COOL at 22°C
from quilt_hp.models.enums import HVACMode
spaces = await client.list_spaces()
await client.set_space(spaces[0].id, mode=HVACMode.COOL, cool_setpoint_c=22.0)
# Stream real-time updates
spaces = await client.list_spaces()
topics = [f"hds/space/{s.id}" for s in spaces]
async with client.stream(topics) as stream:
stream.on_space_update(lambda s: print(f"{s.name}: {s.state.ambient_temperature_c}°C"))
await asyncio.sleep(60)
asyncio.run(main())
CLI
# Authenticate (caches tokens for subsequent commands)
quilt login --email user@example.com
# Full system inventory + telemetry (summary)
quilt info
# Full system snapshot as JSON for automation
quilt info --output json
# All device/entity IDs (includes update entities)
quilt devices
# Current sensor values + setpoints
quilt values
# Machine-readable values for scripting
quilt values --output json
# Energy usage
quilt energy --period week
# Set a room to cooling mode
quilt set "Living Room" --mode cool --cool 22
Development
git clone https://github.com/eman/quilt-hp-python.git
cd quilt-hp-python
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,cli]"
# Run checks
ruff check src/ tests/
ruff format --check src/ tests/
mypy src/quilt_hp/
pytest
python -m build
twine check dist/*
# Recompile protobuf stubs (requires grpcio-tools)
# Proto sources are vendored in ./proto/cleaned for standalone use.
# Optional but recommended: install protobuf includes (e.g. `brew install protobuf`)
./scripts/regen_protos.sh
# Build project docs (MkDocs Material)
pip install -e ".[docs]"
python scripts/check_docs_nav.py
mkdocs build --strict
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quilt_hp_python-0.3.2.tar.gz.
File metadata
- Download URL: quilt_hp_python-0.3.2.tar.gz
- Upload date:
- Size: 242.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39739b4df532627f6eece12e45cec907db17b968044aa8542d8a0ff80f829e85
|
|
| MD5 |
b062277777fae0dd1eb5e4d0ac2e16d4
|
|
| BLAKE2b-256 |
c860e623999fb0ece3852e11317ca1067dc64b3ed6c69987ff64aaa2356e9d27
|
Provenance
The following attestation bundles were made for quilt_hp_python-0.3.2.tar.gz:
Publisher:
release.yml on eman/quilt-hp-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quilt_hp_python-0.3.2.tar.gz -
Subject digest:
39739b4df532627f6eece12e45cec907db17b968044aa8542d8a0ff80f829e85 - Sigstore transparency entry: 1538180604
- Sigstore integration time:
-
Permalink:
eman/quilt-hp-python@517e015b3c890451c7b120ff7a305b9e49b0c3d4 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/eman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@517e015b3c890451c7b120ff7a305b9e49b0c3d4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file quilt_hp_python-0.3.2-py3-none-any.whl.
File metadata
- Download URL: quilt_hp_python-0.3.2-py3-none-any.whl
- Upload date:
- Size: 153.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07bfaceaaff7db01da223e37c33f8591fd556bfab0b16d211fdc79f177866091
|
|
| MD5 |
6b4320f879f055ab6ef6063f6782b6a7
|
|
| BLAKE2b-256 |
9a9f0dfc69f904db4d57dd255eef7a47d7f50785398c19ab2d3772a651e430b5
|
Provenance
The following attestation bundles were made for quilt_hp_python-0.3.2-py3-none-any.whl:
Publisher:
release.yml on eman/quilt-hp-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quilt_hp_python-0.3.2-py3-none-any.whl -
Subject digest:
07bfaceaaff7db01da223e37c33f8591fd556bfab0b16d211fdc79f177866091 - Sigstore transparency entry: 1538180718
- Sigstore integration time:
-
Permalink:
eman/quilt-hp-python@517e015b3c890451c7b120ff7a305b9e49b0c3d4 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/eman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@517e015b3c890451c7b120ff7a305b9e49b0c3d4 -
Trigger Event:
push
-
Statement type: