Heiman Connect Library
Python library for communicating with Heiman smart home devices.
Installation
pip install heiman-connect
Usage
import asyncio
from heimanconnect import HeimanHttpClient, HeimanCloudClient
async def main():
# Initialize HTTP client with access token
http_client = HeimanHttpClient(
api_url="https://api.heiman.cn",
access_token="your_access_token",
)
# Create cloud client
cloud_client = HeimanCloudClient(http_client)
# Get homes
homes = await cloud_client.async_get_homes()
# Get devices
devices = await cloud_client.async_get_devices(home_id=homes[0].home_id)
# Control device
await cloud_client.async_control_device(
device_id=device_id,
property_identifier="Switch",
value=True,
)
asyncio.run(main())
Features
- HTTP API client
- MQTT real-time communication
- Device management
- Property control
- Simplified authentication (bring your own token)
License
MIT License
Metadata
Release files for heiman-connect 1.0.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| heiman_connect-1.0.29.tar.gz | 61.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| heiman_connect-1.0.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 198.0 kB
Release files / heiman_connect-1.0.29.tar.gz
| Download URL | heiman_connect-1.0.29.tar.gz |
|---|---|
| Size | 61.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8592441fadbfb0c40bfdfbf75a3be25c00c7a0dae270a1e7611bf6d75ca722b0
|
|
BLAKE2b-256 checksum How to use checksums |
ef78de98c20fa67f0564646fbff3d0f912941063a7592fce20e39dff6cbd78bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / heiman_connect-1.0.29-py3-none-any.whl
| Download URL | heiman_connect-1.0.29-py3-none-any.whl |
|---|---|
| Size | 136.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e47b6a80021a80d304cc9f0fedf78d7bbd21950661265b0673487bf5459aeff2
|
|
BLAKE2b-256 checksum How to use checksums |
9965e56a121375f87b043f679fd68386578746bd09dd2cc103cafdb4d860fe53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for heiman-connect 1.0.29
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.